converting 2d array to a undirected graph structure

hello,

how do i convert 2 dimensional array into undirected graph structure?

example array info[][] { {ww, ss,ee}, { aa,bb.ww},{ss,ff,bb}}

the graph is

ww sseeaabbff

ww011110

ss101000

ee110000

aa100010

bb110101

ff010010

so there is one "edge" between any two elements "vertices" in the same row.

Please help ,

Many thanks in advance.

[419 byte] By [aljojoa] at [2007-11-27 4:36:59]
# 1
What data structure you should use only depends on your application's requirement.
hiwaa at 2007-7-12 9:47:10 > top of Java-index,Java Essentials,New To Java...
# 2
Have you chosen your graph representation? Do the concepts "adjacency matrix" and "adjacency list" ring bells?
Hippolytea at 2007-7-12 9:47:10 > top of Java-index,Java Essentials,New To Java...
# 3
yes i want to convert the array to adjacency matrix graph
aljojoa at 2007-7-12 9:47:10 > top of Java-index,Java Essentials,New To Java...