Trait traitgraph::interface::GraphBase [−][src]
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>;
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.
Associated Types
type OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>
type OptionalNodeIndex: OptionalGraphIndex<Self::NodeIndex>
The optional index type used for nodes.
type OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>
type OptionalEdgeIndex: OptionalGraphIndex<Self::EdgeIndex>
The optional index type used for edges.
type NodeIndex: GraphIndex<Self::OptionalNodeIndex>
type NodeIndex: GraphIndex<Self::OptionalNodeIndex>
The index type used for nodes.
type EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>
type EdgeIndex: GraphIndex<Self::OptionalEdgeIndex>
The index type used for edges.
Provided methods
fn 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.
fn 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.