3 typedef struct {int node1
, node2
;} Edge
;
5 typedef struct {int next
;
6 Edge
* edges
;} EdgeListType
;
10 int next
; /* temporary count needed to tell where to insert the next entry */
11 int adjListInd
; /* where in the big array does its adj list begin */
12 /* int available;*/ /* number of connections still available. 12/2/97 */
17 Vertex
* vertexArray
; /* ptr to an array of records, one for each vertex */
18 int * adjArray
; /* ptr to an array in which adjacency sub-arrays for each
19 vertex are stored contiguosly */
22 #define connections(graph, i) (graph->vertexArray[i].degree)