Overview
An adjacency list stores outgoing or incident neighbors for each vertex. It is compact for sparse graphs and efficient for iterating over neighbors.
Represents a graph by storing each node with the neighbors reachable from it.
Compact metadata for implementation and discovery.
An adjacency list stores outgoing or incident neighbors for each vertex. It is compact for sparse graphs and efficient for iterating over neighbors.
Quick facts
Runtime and memory behavior at a glance.
Best
O(degree)
Average
O(V + E)
Worst
O(V + E)
Space
O(V + E)
Show the structure layout and how operations move through or update it.
Adjacency lists are the default representation for many sparse graph algorithms.
What each reference supports for this entry.
Reference for Graph Adjacency List adjacency-list graph storage and traversal complexity.
Good next jumps from the relationship graph, ranked for useful discovery.
Data Structures · Foundation
Adjacency lists organize the same graph around neighbor queries instead of edge scans.
Compare with thisData Structures · Core
Adjacency lists are sparse graph representations compared with adjacency matrices.
Compare with thisBFS commonly iterates outgoing neighbors from adjacency lists.
Adjacency lists are sparse graph representations compared with adjacency matrices.