Trait traitgraph::interface::GraphBase
source · 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§
sourcetype OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>
type OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>
The optional index type used for nodes.
sourcetype OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>
type OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>
The optional index type used for edges.
sourcetype NodeIndex: GraphIndex<Self::OptionalNodeIndex>
type NodeIndex: GraphIndex<Self::OptionalNodeIndex>
The index type used for nodes.
sourcetype EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>
type EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>
The index type used for edges.
Provided Methods§
sourcefn new_none_optional_node_index(&self) -> Self::OptionalNodeIndex
fn new_none_optional_node_index(&self) -> Self::OptionalNodeIndex
Returns the none value of the optional node index type used by the trait.
sourcefn new_none_optional_edge_index(&self) -> Self::OptionalEdgeIndex
fn new_none_optional_edge_index(&self) -> Self::OptionalEdgeIndex
Returns the none value of the optional edge index type used by the trait.