Bare Bones Code: When a Graph is a Grid
In Bare Bones Code: Representing Graphs we showed how to represent a graph using an Adjacency List. This meant using a HashMap (Dictionary, Associate Array) to store the graph node with a list of the nodes it is connected to.