Fix memory leaks in trace projections and summary
[charm.git] / src / conv-ldb / graphdefs.h
blobaba463f39ebc48130823784c3fa48ff1a8534b96
1 #include "converse.h"
3 typedef struct {int node1, node2;} Edge;
5 typedef struct {int next;
6 Edge * edges;} EdgeListType;
8 typedef struct {
9 int degree;
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 */
13 } Vertex;
15 typedef struct {
16 int numVertices;
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 */
20 } VerticesListType;
22 #define connections(graph, i) (graph->vertexArray[i].degree)
24 /* -----*/
25 typedef struct {
26 int size, head, tail;
27 int numElements;
28 int * buf; }