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, Ix> Create for Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,