[−][src]Struct rs_graph::linkedlistgraph::LinkedListGraphBuilder
A builder for a LinkedListGraph.
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, N, E> Builder for LinkedListGraphBuilder<ID, N, E> where
ID: PrimInt + Unsigned,
N: Default,
E: Default,
[src]
ID: PrimInt + Unsigned,
N: Default,
E: Default,
type Graph = LinkedListGraph<ID, N, E>
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 to_graph(self) -> LinkedListGraph<ID, N, E>
[src]
fn new() -> Self
[src]
fn add_nodes(&mut self, n: usize) -> Vec<Self::Node>
[src]
Auto Trait Implementations
impl<ID, N, E> RefUnwindSafe for LinkedListGraphBuilder<ID, N, E> where
E: RefUnwindSafe,
ID: RefUnwindSafe,
N: RefUnwindSafe,
E: RefUnwindSafe,
ID: RefUnwindSafe,
N: RefUnwindSafe,
impl<ID, N, E> Send for LinkedListGraphBuilder<ID, N, E> where
E: Send,
ID: Send,
N: Send,
E: Send,
ID: Send,
N: Send,
impl<ID, N, E> Sync for LinkedListGraphBuilder<ID, N, E> where
E: Sync,
ID: Sync,
N: Sync,
E: Sync,
ID: Sync,
N: Sync,
impl<ID, N, E> Unpin for LinkedListGraphBuilder<ID, N, E> where
E: Unpin,
ID: Unpin,
N: Unpin,
E: Unpin,
ID: Unpin,
N: Unpin,
impl<ID, N, E> UnwindSafe for LinkedListGraphBuilder<ID, N, E> where
E: UnwindSafe,
ID: UnwindSafe,
N: UnwindSafe,
E: UnwindSafe,
ID: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,