Glossary: Algorithms Beyond the Basics
Adjacency list
A way to store a graph as a dict from each place to the list of its neighbors. In a weighted graph each neighbor is stored as a `(neighbor, minutes)` tuple.
Glossary: Algorithms Beyond the Basics
A way to store a graph as a dict from each place to the list of its neighbors. In a weighted graph each neighbor is stored as a `(neighbor, minutes)` tuple.