

Example:



/* ======================================= List element that represents an edge ======================================= */ class Edge { int NodeID; // The neighbor node Node next; // Next Edge in the list } /* ======================================= The nodes ======================================= */ Edge[] node; // Node[i] contains a list of neighbor for i 



/* ======================================= The edges ======================================= */ int[][] M; // M[i][j] > 0 <==> edge (i,j) 



