Struct fera_graph::graphs::static_::Static [] [src]

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

Trait Implementations

impl<V: Clone + Num, K: Clone + StaticEdgeKind> Clone for Static<V, K> where
    K::Edge: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V: Debug + Num, K: Debug + StaticEdgeKind> Debug for Static<V, K> where
    K::Edge: Debug
[src]

[src]

Formats the value using the given formatter.

impl<V: PartialEq + Num, K: PartialEq + StaticEdgeKind> PartialEq for Static<V, K> where
    K::Edge: PartialEq
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<V: Num, K: StaticEdgeKind> WithBuilder for Static<V, K>
[src]

The builder for this graph type.

[src]

Creates a new builder for a graph of this type with n vertices and initial capacity for m edges. Read more

[src]

Creates a new graph with n vertices from edges iterator. Read more

[src]

Creates a graph with n vertices and no edges.

[src]

Creates a complete graph with n vertices. Read more

[src]

Creates a graph that is a complete binary tree with height h. Read more

[src]

Creates a graph with n vertices that is a tree, that is, is connected and acyclic. Read more

[src]

Similar to [new_random_tree] but creates a tree with diameter d. Returns None if the diameter is invalid. Read more

[src]

Creates a random graph with n vertices.

[src]

Creates a random connected graph with n vertices.

[src]

Creates a random graph with n vertices and m edges. Read more

[src]

Creates a random connected graph (weakly connected if Self is a digraph) with n vertices and m edges. Read more

impl<V: Num, K: StaticEdgeKind> WithVertex for Static<V, K>
[src]

[src]

[src]

[src]

[src]

impl<V: Num, K: StaticEdgeKind> WithEdge for Static<V, K>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a, V: Num, K: StaticEdgeKind> VertexTypes<'a, Static<V, K>> for Static<V, K>
[src]

impl<'a, V: Num, K: StaticEdgeKind> EdgeTypes<'a, Static<V, K>> for Static<V, K>
[src]

impl<V: Num, K: StaticEdgeKind> VertexList for Static<V, K>
[src]

[src]

[src]

impl<V: Num, K: StaticEdgeKind> EdgeList for Static<V, K>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<V: Num, K: StaticEdgeKind> Adjacency for Static<V, K>
[src]

[src]

[src]

impl<V: Num, K: StaticEdgeKind> Incidence for Static<V, K>
[src]

[src]

[src]

[src]

impl<V: Num, K: StaticEdgeKind> WithVertexIndexProp for Static<V, K>
[src]

[src]

Creates an vertex index map.

impl<V: Num, K: StaticEdgeKind> WithEdgeIndexProp for Static<V, K>
[src]

[src]

Creates an edge index map.

impl<T, V: Num, K: StaticEdgeKind> WithVertexProp<T> for Static<V, K>
[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<V: Num, K: StaticEdgeKind> BasicVertexProps for Static<V, K>
[src]

impl<T, V: Num, K: StaticEdgeKind> WithEdgeProp<T> for Static<V, K>
[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<V: Num, K: StaticEdgeKind> BasicEdgeProps for Static<V, K>
[src]

impl<V: Num, K: StaticEdgeKind> BasicProps for Static<V, K>
[src]

impl<V: Num, K: StaticEdgeKind> Choose for Static<V, K>
[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