Adjacency list

An adjacency list represents a graph by storing, for each vertex, a list of its neighboring vertices. It uses space proportional to the vertices and edges.

Connect