pub trait GrowableGraph {
// Required methods
fn new() -> Self;
fn add_vertex(&mut self) -> VertexId;
fn add_edge(&mut self, source: VertexId, sink: VertexId) -> EdgeId;
}Expand description
A trait for low-level growable graphs.
Required Methods§
Sourcefn add_vertex(&mut self) -> VertexId
fn add_vertex(&mut self) -> VertexId
Add a new vertex into the graph.
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.