Struct rs_graph::vecgraph::VecGraph[][src]

pub struct VecGraph<ID = u32> { /* fields omitted */ }

A vector based graph data structure.

Implementations

impl<ID> VecGraph<ID> where
    ID: PrimInt + Unsigned
[src]

pub fn new() -> VecGraph<ID>[src]

Trait Implementations

impl<ID> Buildable for VecGraph<ID> where
    ID: PrimInt + Unsigned
[src]

type Builder = VecGraphBuilder<ID>

impl<ID> Default for VecGraph<ID> where
    ID: PrimInt + Unsigned
[src]

impl<'de, ID> Deserialize<'de> for VecGraph<ID> where
    ID: Deserialize<'de>, 
[src]

impl<'a, ID> Directed<'a> for VecGraph<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type OutIt = NeighIt<'a, ID>

Type of a graph iterator over edges leaving a node.

type InIt = NeighIt<'a, ID>

Type of a graph iterator over edges entering a node.

type IncidentIt = NeighIt<'a, ID>

Type of an iterator over all incident edges.

type DirectedEdge = Self::Edge

Type of a directed edge.

impl<'a, ID> GraphIterator<VecGraph<ID>> for NodeIt<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type Item = Node<ID>

impl<'a, ID> GraphIterator<VecGraph<ID>> for EdgeIt<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type Item = Edge<ID>

impl<'a, ID> GraphIterator<VecGraph<ID>> for NeighIt<'a, ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type Item = (Edge<ID>, Node<ID>)

impl<'a, ID> GraphSize<'a> for VecGraph<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type NodeIt = NodeIt<ID>

Type of an iterator over all nodes.

type EdgeIt = EdgeIt<ID>

Type of an iterator over all edges.

impl<'a, ID> GraphType<'a> for VecGraph<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type Node = Node<ID>

Type of a node.

type Edge = Edge<ID>

Type of an edge.

impl<'a, ID> IndexGraph<'a> for VecGraph<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

impl<ID> Serialize for VecGraph<ID> where
    ID: Serialize
[src]

impl<'a, ID> Undirected<'a> for VecGraph<ID> where
    ID: 'a + PrimInt + Unsigned
[src]

type NeighIt = NeighIt<'a, ID>

Type of a graph iterator over all incident edges.

Auto Trait Implementations

impl<ID> RefUnwindSafe for VecGraph<ID> where
    ID: RefUnwindSafe

impl<ID> Send for VecGraph<ID> where
    ID: Send

impl<ID> Sync for VecGraph<ID> where
    ID: Sync

impl<ID> Unpin for VecGraph<ID> where
    ID: Unpin

impl<ID> UnwindSafe for VecGraph<ID> where
    ID: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<'a, G> Digraph<'a> for G where
    G: GraphSize<'a> + Directed<'a>, 
[src]

impl<T> From<T> for T[src]

impl<'a, G> Graph<'a> for G where
    G: GraphSize<'a> + Undirected<'a>, 
[src]

impl<'a, T> IndexDigraph<'a> for T where
    T: IndexGraph<'a> + Digraph<'a>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.