Struct fera_graph::prelude::Subgraph [] [src]

pub struct Subgraph<'a, G> where
    G: 'a + Graph
{ /* fields omitted */ }

Trait Implementations

impl<'a, G> AsRef<G> for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

Performs the conversion.

impl<'a, 'b, G> VertexTypes<'a, Subgraph<'b, G>> for Subgraph<'b, G> where
    G: 'b + Graph
[src]

impl<'a, G> WithVertex for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

[src]

[src]

impl<'a, 'b, G> EdgeTypes<'a, Subgraph<'b, G>> for Subgraph<'b, G> where
    G: 'b + Graph
[src]

impl<'a, G> WithEdge for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a, G> VertexList for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

impl<'a, G> EdgeList for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a, G> Adjacency for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

impl<'a, G> Incidence for Subgraph<'a, G> where
    G: 'a + Graph
[src]

[src]

[src]

[src]

impl<'a, G, T> WithVertexProp<T> for Subgraph<'a, G> where
    G: 'a + Graph + WithVertexProp<T>, 
[src]

The vertex property type.

[src]

Creates a new default vertex property where the initial value associated with each vertex is value. Read more

[src]

Creates a new default vertex property where the initial value associated with each vertex v is produced by fun(v). Read more

impl<'a, G, T> WithEdgeProp<T> for Subgraph<'a, G> where
    G: 'a + Graph + WithEdgeProp<T>, 
[src]

[src]

Creates a new default edge property where the initial value associated with each edge is value. Read more

[src]

Creates a new default edge property where the initial value associated with each edge e is produced by fun(e). Read more

impl<'a, G> BasicVertexProps for Subgraph<'a, G> where
    G: 'a + Graph
[src]

impl<'a, G> BasicEdgeProps for Subgraph<'a, G> where
    G: 'a + Graph
[src]

impl<'a, G> BasicProps for Subgraph<'a, G> where
    G: 'a + Graph
[src]

impl<'a, G> Choose for Subgraph<'a, G> where
    G: 'a + IncidenceGraph
[src]

[src]

Returns a random vertex of this graph or None if the graph has no vertices.

[src]

Returns a random neighbor vertex of v or None if v has no neighbors.

[src]

Returns a random edge of this graph or None if the graph has no edges.

[src]

Returns a random out edge of v or None if v has no out edges.

[src]

Returns an iterator that repeatedly calls choose_vertex.

[src]

Returns an iterator that repeatedly calls choose_out_neighbor(v).

[src]

Returns an iterator that repeatedly calls choose_edge.

[src]

Returns an iterator that repeatedly calls choose_out_edge(v).

[src]

Returns a iterator that produces a sequence of random edges that forms a walk, that is, the target vertex of the previous edge is the source vertex of the next edge. Read more