The first row has two values - number of nodes (24) and number of links (76). Then it has all the link details (76 rows of data). I want to read this data. I have written out the following function:
First the structure definitions:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
typedefstruct {
int arcno;
int tail;
int head;
} arc_data;
typedefstruct {
int forwardStarPoint;
int reverseStarPoint;
} node_data;
typedefstruct {
arc_data *arcs;
node_data *nodes;
int numNodes;
int numArcs;
} network_data;