Algorithms and Data Structures
2023-07-29
Adjacency List and Adjacency Matrix
Compare adjacency lists (O(V+E) space, efficient for sparse graphs) and adjacency matrices (O(V²) space, O(1) edge lookup). Includes Go implementations for directed and undirected graphs.
#Graph#Adjacency Matrix#Adjacency List