Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Adjacency list

Also written: adjacency lists

A way to store a graph as a Map from each place to an array of its neighbors. Alex's delivery map is stored this way, with each neighbor paired with its driving minutes once the graph is weighted.

Where the book teaches it

Related terms

Weighted graph