Type Alias petgraph::graph_impl::UnGraph

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

A Graph with undirected edges.

For example, an edge between 1 and 2 is equivalent to an edge between 2 and 1.

Aliased Type§

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

Fields§

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