Used to represent a weighted graph
List of list of nodes
Edge has a weight w to a destination node v
List of edges
List of list of integer nodes
Represents a node in the Grid graph with x and y coordinates and optional data, which can be considered the node value
Used to represent an unweighted graph
Returns a new, independent, identical AdjacencyList
Replaces the edges with just the destination nodes
Replaces the destination nodes with edges of weight 1.0