Type Definition traitgraph::walks::VecNodeWalk[][src]

pub type VecNodeWalk<Graph> = Vec<<Graph as GraphBase>::NodeIndex>;
Expand description

A node walk that is represented as a vector of node indices.

Trait Implementations

Computes the trivial heart of the walk, or returns None if the walk is non-trivial. The heart is returned as the index of the last split node and the index of the first join node of the walk. These are not part of the heart. Read more

Compute the amount of nodes in the trivial heart, or returns None if the walk is non-trivial. Recall that a heart is a walk from arc to arc. Read more

Returns true if this walk is non-trivial.

Computes the univocal extension of this walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first node of W and R the longest univocal walk from the last node of W. Read more

Computes the univocal extension of this walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first node of W and R the longest univocal walk from the last node of W. This method handles not strongly connected graphs by disallowing L and R to repeat nodes. Read more

Computes the univocal extension of this walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first node of W and R the longest univocal walk from the last node of W. Read more

Computes the univocal extension of this walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first node of W and R the longest univocal walk from the last node of W. This method handles not strongly connected graphs by disallowing L and R to repeat nodes. Read more

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

Returns true if this is a proper subwalk of the given walk. Proper means that the walks are not equal. Read more