Skip to main content

DiGraphMap

Type Alias DiGraphMap 

Source
pub type DiGraphMap<N, E, S = RandomState> = GraphMap<N, E, Directed, S>;
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§

pub struct DiGraphMap<N, E, S = RandomState> {
    nodes: IndexMap<N, Vec<(N, CompactDirection)>, S>,
    edges: IndexMap<(N, N), E, S>,
    ty: PhantomData<Directed>,
}

Fields§

§nodes: IndexMap<N, Vec<(N, CompactDirection)>, S>§edges: IndexMap<(N, N), E, S>§ty: PhantomData<Directed>