pub trait GraphBase {
    type NodeData;
    type EdgeData;
    type OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>;
    type OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>;
    type NodeIndex: GraphIndex<Self::OptionalNodeIndex>;
    type EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>;

    // Provided methods
    fn new_none_optional_node_index(&self) -> Self::OptionalNodeIndex { ... }
    fn new_none_optional_edge_index(&self) -> Self::OptionalEdgeIndex { ... }
}
Expand description

Contains the associated types of a graph.

Required Associated Types§

source

type NodeData

The data type associated with each node.

source

type EdgeData

The data type associated with each edge.

source

type OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>

The optional index type used for nodes.

source

type OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>

The optional index type used for edges.

source

type NodeIndex: GraphIndex<Self::OptionalNodeIndex>

The index type used for nodes.

source

type EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>

The index type used for edges.

Provided Methods§

source

fn new_none_optional_node_index(&self) -> Self::OptionalNodeIndex

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

source

fn new_none_optional_edge_index(&self) -> Self::OptionalEdgeIndex

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

Implementors§

source§

impl<'a, Graph: GraphBase> GraphBase for InducedBitVectorSubgraph<'a, Graph>

source§

impl<Graph0: GraphBase, Graph1: GraphBase> GraphBase for UnionSubgraph<'_, Graph0, Graph1>

source§

impl<Graph: GraphBase> GraphBase for BitVectorSubgraph<'_, Graph>

source§

impl<Graph: GraphBase> GraphBase for IncrementalSubgraph<'_, Graph>

source§

impl<Graph: GraphBase> GraphBase for InducedIncrementalSubgraph<'_, Graph>

source§

impl<Graph: GraphBase> GraphBase for InvertedSubgraph<'_, Graph>

source§

impl<NodeData, EdgeData> GraphBase for PetGraph<NodeData, EdgeData>