Trait petgraph::data::Create [−][src]
pub trait Create: Build + Default { fn with_capacity(nodes: usize, edges: usize) -> Self; }
Expand description
A graph that can be created
Required methods
fn with_capacity(nodes: usize, edges: usize) -> Self[src]
Implementors
impl<N, E, Ty> Create for GraphMap<N, E, Ty> where
Ty: EdgeType,
N: NodeTrait, [src]
impl<N, E, Ty> Create for GraphMap<N, E, Ty> where
Ty: EdgeType,
N: NodeTrait, [src]fn with_capacity(nodes: usize, edges: usize) -> Self[src]
impl<N, E, Ty, Ix> Create for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
impl<N, E, Ty, Ix> Create for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]fn with_capacity(nodes: usize, edges: usize) -> Self[src]
impl<N, E, Ty, Ix> Create for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
impl<N, E, Ty, Ix> Create for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]