Type Alias petgraph::graph_impl::DiGraph

source ·
pub type DiGraph<N, E, Ix = DefaultIx> = Graph<N, E, Directed, Ix>;
Expand description

A Graph with directed edges.

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

Aliased Type§

struct DiGraph<N, E, Ix = DefaultIx> {
    nodes: Vec<Node<N, Ix>>,
    edges: Vec<Edge<E, Ix>>,
    ty: PhantomData<Directed>,
}

Fields§

§nodes: Vec<Node<N, Ix>>§edges: Vec<Edge<E, Ix>>§ty: PhantomData<Directed>