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 ss ee aa bb ff
ww 0 1 1 1 1 0
ss 1 0 1 0 0 0
ee 1 1 0 0 0 0
aa 1 0 0 0 1 0
bb 1 1 0 1 0 1
ff 0 1 0 0 1 0
so there is one "edge" between any two elements "vertices" in the same row.
Please help ,
Many thanks in advance.