Struct rs_graph::linkedlistgraph::LinkedListGraph [] [src]

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

The linked list based graph data structure.

Methods

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

Trait Implementations

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

Type of a node.

Type of an edge.

Type of an iterator over all nodes.

Type of an iterator over all edges.

Type of an iterator over incident edges.

[src]

Return the number of nodes.

[src]

Return the number of edges.

[src]

Return the nodes connected by an edge. Read more

[src]

Return an iterator over all nodes.

[src]

Return an iterator over all edges. Read more

[src]

Return an iterator over the edges adjacent to some node. Read more

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

Type of an iterator over the forward edges leaving a node.

Type of an iterator over the backward edges entering a node.

[src]

Return the source node of an edge.

[src]

Return the sink node of an edge.

[src]

Return an iterator over the outgoing edges of a node. Read more

[src]

Return an iterator over the incoming edges of a node. Read more

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

[src]

Return true if e is the reverse edge of f.

[src]

Return the reverse edge of e.

[src]

Return true if e is a forward edge.

[src]

Return the forward edge of e. Read more

[src]

Return true if e is a backward edge.

[src]

Return the backward edge of e. Read more

[src]

Return the source of the directed edge e. Read more

[src]

Return the sink of the directed edge e. Read more

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

[src]

Return a unique id associated with a node.

[src]

Return the node associated with the given id. Read more

[src]

Return a unique id associated with an edge. Read more

[src]

Return the edge associated with the given id. Read more

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

[src]

Return the edge associated with the given id. Read more

[src]

Return a unique id associated with a directed edge. Read more

impl<ID> Builder for LinkedListGraph<ID> where
    ID: PrimInt + Unsigned
[src]

The graph type produced by this builder.

The type of a nodes.

The type of an edge.

[src]

Create a new, empty builder. Read more

[src]

Reserve memory for a certain number of nodes and edges.

[src]

Add a new node.

[src]

Add a new edge.

[src]

Return a unique id of a node.

[src]

Return a unique id of an edge.

[src]

Turn the builder into a graph.

[src]

Create a new, empty builder.

[src]

Add n new nodes.

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

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

[src]

Returns the "default value" for a type. Read more