Term
Adjacency list
A way of keeping a graph as one list of neighbours per vertex. List adj[u] holds every neighbour of u; room is used only for the edges that exist.
A way of keeping a graph as one list of neighbours per vertex. List adj[u] holds every neighbour of u; room is used only for the edges that exist.