Struct rs_graph::vecgraph::VecGraphBuilder [−][src]
pub struct VecGraphBuilder<ID> { /* fields omitted */ }
A builder for a VecGraph.
The basic task is to arrange the final outgoing and incoming edges in the linked lists appropriately (i.e. first outgoing, then incoming edges).
Trait Implementations
impl<ID> Builder for VecGraphBuilder<ID> where
ID: PrimInt + Unsigned,
[src]
impl<ID> Builder for VecGraphBuilder<ID> where
ID: PrimInt + Unsigned,
[src]type Graph = VecGraph<ID>
The graph type produced by this builder.
type Node = Node<ID>
The type of a nodes.
type Edge = Edge<ID>
The type of an edge.
fn with_capacities(nnodes: usize, nedges: usize) -> Self
[src]
fn reserve(&mut self, nnodes: usize, nedges: usize)
[src]
fn num_nodes(&self) -> usize
[src]
fn num_edges(&self) -> usize
[src]
fn add_node(&mut self) -> Self::Node
[src]
fn add_edge(&mut self, u: Self::Node, v: Self::Node) -> Self::Edge
[src]
fn node2id(&self, u: Self::Node) -> usize
[src]
fn edge2id(&self, e: Self::Edge) -> usize
[src]
fn into_graph(self) -> VecGraph<ID>
[src]
fn new() -> Self
[src]
fn add_nodes(&mut self, n: usize) -> Vec<Self::Node>
[src]
Auto Trait Implementations
impl<ID> RefUnwindSafe for VecGraphBuilder<ID> where
ID: RefUnwindSafe,
impl<ID> RefUnwindSafe for VecGraphBuilder<ID> where
ID: RefUnwindSafe,
impl<ID> Send for VecGraphBuilder<ID> where
ID: Send,
impl<ID> Send for VecGraphBuilder<ID> where
ID: Send,
impl<ID> Sync for VecGraphBuilder<ID> where
ID: Sync,
impl<ID> Sync for VecGraphBuilder<ID> where
ID: Sync,
impl<ID> Unpin for VecGraphBuilder<ID> where
ID: Unpin,
impl<ID> Unpin for VecGraphBuilder<ID> where
ID: Unpin,
impl<ID> UnwindSafe for VecGraphBuilder<ID> where
ID: UnwindSafe,
impl<ID> UnwindSafe for VecGraphBuilder<ID> where
ID: UnwindSafe,