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