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.

