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§
fn with_capacity(nodes: usize, edges: usize) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<G: Create + Visitable + NodeIndexable> Create for Acyclic<G>where
for<'a> &'a G: IntoNeighborsDirected + IntoNodeIdentifiers + Visitable<Map = G::Map> + GraphBase<NodeId = G::NodeId>,
G::NodeId: IndexType,
impl<N, E, Ty, Ix> Create for Graph<N, E, Ty, Ix>
impl<N, E, Ty, S> Create for GraphMap<N, E, Ty, S>
Available on crate feature
graphmap
only.