Please suggest the best way to build an adjacency matrix from given nodes and links.
my input wil be as shown
3 2
n1 n2 3
n3 n1 2
The first row 3 represents number of nodes,
and 2 represnets number of links.
the following two lines represent edges/connects and the numbers 3,2 represent that they are weighted ones.
how can I form an adjacency matrix from the given input?
Thanks in advance,
Anil kumar Y.
A suggestion can make a difference.