Type Definition traitgraph::walks::VecNodeWalk
source · [−]Expand description
A node walk that is represented as a vector of node indices.
Trait Implementations
sourceimpl<'a, Graph: GraphBase> NodeWalk<'a, Graph, [<Graph as GraphBase>::NodeIndex]> for VecNodeWalk<Graph> where
Graph::NodeIndex: 'a,
impl<'a, Graph: GraphBase> NodeWalk<'a, Graph, [<Graph as GraphBase>::NodeIndex]> for VecNodeWalk<Graph> where
Graph::NodeIndex: 'a,
sourcefn clone_as_edge_walk<ResultWalk: From<Vec<Graph::EdgeIndex>>>(
&'a self,
graph: &Graph
) -> Option<ResultWalk> where
Graph: StaticGraph,
fn clone_as_edge_walk<ResultWalk: From<Vec<Graph::EdgeIndex>>>(
&'a self,
graph: &Graph
) -> Option<ResultWalk> where
Graph: StaticGraph,
Returns the edge walk represented by this node walk. If there is a consecutive pair of nodes with a multiedge, then None is returned. If this walk contains less than two nodes, then None is returned. If there is a consecutive pair of node not connected by an edge, then this method panics. Read more