pub struct Static<V: Num, K: StaticEdgeKind> { /* private fields */ }

Trait Implementations

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
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The builder for this graph type.
Creates a new builder for a graph of this type with n vertices and initial capacity for m edges. Read more
Creates a new graph with n vertices from edges iterator. Read more
Creates a graph with n vertices and no edges.
Creates a graph with n vertices that is a tree, that is, is connected and acyclic. Read more
Similar to [new_random_tree] but creates a tree with diameter d. Returns None if the diameter is invalid. Read more
Creates an edge index map.
Creates an vertex index map.
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.