Hello,
A data structure for the implementation of graph can be
struct node
{
int index;
struct node *next;
};
struct adjnode // node adjacent to node
{
int adjindex;
struct node *next;
struct adjnode *next;
};
input file is
node1 adjnode1 adjnode3
node2 adjnode1 adjnode4
node3 adjnode1 adjnode4
node3 adjnode2 adjnode3
such that 1234 forms a quadrilateral.
How can I populate all the data in one file read...
Kindly reply,
Regards,
Sameer.