Struct traitgraph::implementation::bit_vector_subgraph::BitVectorSubgraph[][src]

pub struct BitVectorSubgraph<'a, Graph> { /* fields omitted */ }
Expand description

A subgraph that stores the presence or absence of a node or edge using bitvectors.

Trait Implementations

Panics if the node_index is not valid for the graph passed in the constructor.

Panics if the edge_index is not valid for the graph passed in the constructor.

Panics if the node_index is not valid for the graph passed in the constructor.

Panics if the edge_index is not valid for the graph passed in the constructor.

Returns the amount of nodes in the subgraph.

Returns the amount of edges in the subgraph.

The type of the associated parent graph.

The type of the reference to the associated parent graph.

Constructs a subgraph from the given graph without any nodes or edges. If not defined otherwise in the implementation, all node and edge ids of the given graph are valid arguments for the methods of this trait on the returned object. Read more

Constructs a subgraph from the given graph with all nodes and edges. If not defined otherwise in the implementation, all node and edge ids of the given graph are valid arguments for the methods of this trait on the returned object. Read more

Removes all nodes and edges from the subgraph.

Returns a reference to the original graph.

Returns true if the given node id is part of the subgraph.

Returns true if the given edge id is part of the subgraph.

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

Performs the conversion.

The data type associated with each node.

The data type associated with each edge.

The optional index type used for nodes.

The optional index type used for edges.

The index type used for nodes.

The index type used for edges.

Returns the none value of the optional node index type used by the trait.

Returns the none value of the optional edge index type used by the trait.

Returns an iterator over the node indices in this graph.

Returns an iterator over the edge indices in this graph.

Returns true if this graph contains the given node index.

Returns true if this graph contains the given edge index.

Returns the amount of nodes in this graph.

Returns the amount of edges in this graph.

Returns a reference to the node data associated with the given node id, or None if there is no such node.

Returns a reference to the edge data associated with the given edge id, or None if there is no such edge.

Returns a mutable reference to the node data associated with the given node id, or None if there is no such node.

Returns a mutable reference to the edge data associated with the given edge id, or None if there is no such edge.

Returns true if the graph contains an edge (from, to).

Returns the amount of edges (from, to).

Returns the endpoints of an edge.

Returns true if the graph is empty, i.e. contains no nodes or edges.

Performs the conversion.

The iterator type used to iterate over the outgoing neighbors of a node.

The iterator type used to iterate over the incoming neighbors of a node.

The iterator type used to iterate over the edges between to nodes.

Returns an iterator over the outgoing neighbors of the given node.

Returns an iterator over the incoming neighbors of the given node.

Returns an iterator over the edges (from_node_id, to_node_id).

Returns the amount of outgoing edges from a node.

Returns the amount of incoming edges to a node.

Returns true if the given node has indegree == 1 and outdegree == 1.

Returns true if the given node has indegree > 1 and outdegree > 1.

Returns true if the given edge’s tail has outdegree > 1.

Returns true if the given edge’s head has indegree > 1.

Returns true if the given node has outdegree > 1.

Returns true if the given node has indegree > 1.

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.

Create a node-centric walk over the given nodes in this graph.

Create an empty node-centric walk in this graph.

Create an edge-centric walk over the given edges in this graph.

Create an empty edge-centric walk in this graph.