Trait petgraph::data::Create

source ·
pub trait Create: Build + Default {
    // Required method
    fn with_capacity(nodes: usize, edges: usize) -> Self;
}
Expand description

A graph that can be created

Required Methods§

source

fn with_capacity(nodes: usize, edges: usize) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<N, E, Ty> Create for GraphMap<N, E, Ty>
where Ty: EdgeType, N: NodeTrait,

source§

impl<N, E, Ty, Ix> Create for StableGraph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

source§

impl<N, E, Ty, Ix> Create for Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,