AdjacencyList typedef

AdjacencyList = Map<Node, Set<Node>>

A description of the topology of a graph.

Maps from each Node in the graph to the Set of Nodes adjacent to it.

en.wikipedia.org/wiki/Adjacency_list

Implementation

typedef AdjacencyList = Map<Node, Set<Node>>;