Type Alias GraphNode

Source
pub type GraphNode<N, ID = N> = (N, Vec<GraphEdge<ID>>);
Expand description

Node and edges pair of type N and ID respectively.

ID uniquely identifies a node within the graph. It’s usually cheap to clone. There should be a pure (&N) -> &ID function.