Trait SubgraphBase

Source
pub trait SubgraphBase: GraphBase {
    type RootGraph: GraphBase<NodeData = Self::NodeData, EdgeData = Self::EdgeData, NodeIndex = Self::NodeIndex, EdgeIndex = Self::EdgeIndex, OptionalNodeIndex = Self::OptionalNodeIndex, OptionalEdgeIndex = Self::OptionalEdgeIndex>;

    // Required method
    fn root(&self) -> &Self::RootGraph;
}
Expand description

A type that represents a subgraph of another graph.

Required Associated Types§

Source

type RootGraph: GraphBase<NodeData = Self::NodeData, EdgeData = Self::EdgeData, NodeIndex = Self::NodeIndex, EdgeIndex = Self::EdgeIndex, OptionalNodeIndex = Self::OptionalNodeIndex, OptionalEdgeIndex = Self::OptionalEdgeIndex>

The root graph of this subgraph, which is either its parent or the root of a DAG of subgraphs.

Required Methods§

Source

fn root(&self) -> &Self::RootGraph

Returns a reference to the root graph of this subgraph.

Implementors§