Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Adjacency list

Also written: adjacency lists

A way to store a graph as a Map whose keys are places and whose values are arrays of neighboring places. In Alex's map, graph.get("Pearl") gives Pearl's neighbors, Burnside and Alberta.

Where the book teaches it

Related terms

GraphHash mapNeighborVertex