Struct fera_graph::graphs::static_::StaticBuilder
[−]
[src]
pub struct StaticBuilder<V: Num, K: StaticEdgeKind> { /* fields omitted */ }
Trait Implementations
impl<V: Num, K: StaticEdgeKind> Builder for StaticBuilder<V, K>
[src]
type Graph = Static<V, K>
The graph type produced by this builder.
fn new(num_vertices: usize, num_edges: usize) -> Self
[src]
Creates a new builder for a graph with exactly n
vertices and initial capacity for m
edges. Read more
fn add_edge(&mut self, u: usize, v: usize)
[src]
Add (u, v)
edge to the graph. Support for multiple edges and loops are graph dependent. Read more
fn finalize(self) -> Self::Graph
[src]
Builds the graph.
fn finalize_(
self
) -> (Self::Graph, Vec<Vertex<Self::Graph>>, Vec<Edge<Self::Graph>>)
[src]
self
) -> (Self::Graph, Vec<Vertex<Self::Graph>>, Vec<Edge<Self::Graph>>)