[prev] 31 [next]

Adjacency Matrix Representation

Implementation of GraphRep

typedef struct GraphRep {
   int   nV;    // #vertices
   int   nE;    // #edges
   int **edges; // matrix of booleans
} GraphRep;

[Diagram:Pics/graphs/graphRep.png]