pub type DiGraph<N, E, Ix = DefaultIx> = Graph<N, E, Directed, Ix>;

A Graph with directed edges.

Graph

For example, an edge from 1 to 2 is distinct from an edge from 2 to 1.