Struct traitgraph::implementation::incremental_subgraph::IncrementalSubgraph[][src]

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

A subgraph that stores the presence or absence of a node or edge using integers. Additionally, this subgraph has a current step that can be altered. Nodes and edges that are added are added with that step, and only nodes and edges with a step lower or equal to the current one are counted as present. This allows to combined multiple subgraphs into one, if they are totally ordered by the subset relation.

Implementations

Create an incremental subgraph with the given amount of incremental steps.

Set the current incremental step of the graph.

Return the nodes that are added in the current incremental step.

Return the edges that are added in the current incremental step.

Trait Implementations

Not implemented for this type.

Not implemented for this type.

Panics if the node_index is not valid for the graph passed in the constructor. Panics also if the node was added already.

Panics if the edge_index is not valid for the graph passed in the constructor. Panics also if the edge was added already.

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.

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.