Module traitgraph::index[][src]

Traits and a default implementation for graph indices.

Structs

EdgeIndex

A valid edge index.

GraphIndices

An iterator over a consecutive sequence of graph indices.

NodeIndex

A valid node index.

OptionalEdgeIndex

An edge index that can be None. This is a hack to get a small sized Option<EdgeIndex> by storing the None variant as IndexType::max_value(). If Rust ever adds support for integer types with invalid values other than 0, this type becomes obsolete.

OptionalNodeIndex

A node index that can be None. This is a hack to get a small sized Option<NodeIndex> by storing the None variant as IndexType::max_value(). If Rust ever adds support for integer types with invalid values other than 0, this type becomes obsolete.

Traits

GraphIndex

A valid graph index.

OptionalGraphIndex

A graph index that can be None. This is a hack to get a small sized Option<GraphIndex> by storing the None variant as IndexType::max_value(). If Rust ever adds support for integer types with invalid values other than 0, this trait becomes obsolete.