2.6 Storing Graphs in Lists
This lesson presents the adjacency list as a memory-efficient method for storing graphs, particularly those that are sparse. It explains how to structure these lists for undirected, directed, and weighted graphs by associating each node with a list of its connected neighbors.
Preview
Cite
Rights
Use and reproduction:
This work may be used under a
Creative Commons Attribution 4.0 License (CC BY 4.0)
.