Type Alias petgraph::graphmap::DiGraphMap
source · pub type DiGraphMap<N, E> = GraphMap<N, E, Directed>;
Expand description
A GraphMap
with directed edges.
For example, an edge from 1 to 2 is distinct from an edge from 2 to 1.
Aliased Type§
struct DiGraphMap<N, E> {
nodes: OrderMap<N, Vec<(N, CompactDirection)>>,
edges: OrderMap<(N, N), E>,
ty: PhantomData<Directed>,
}
Fields§
§nodes: OrderMap<N, Vec<(N, CompactDirection)>>
§edges: OrderMap<(N, N), E>
§ty: PhantomData<Directed>