pub struct SpanningSubgraph<'a, G>where
    G: 'a + WithEdge + WithVertexProp<Vec<Edge<G>>>,
{ /* private fields */ }

Implementations

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Returns a random vertex of this graph or None if the graph has no vertices.
Returns a random neighbor vertex of v or None if v has no neighbors.
Returns a random edge of this graph or None if the graph has no edges.
Returns a random out edge of v or None if v has no out edges.
Returns an iterator that repeatedly calls choose_vertex.
Returns an iterator that repeatedly calls choose_out_neighbor(v).
Returns an iterator that repeatedly calls choose_edge.
Returns an iterator that repeatedly calls choose_out_edge(v).
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
The vertex property type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.