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

pub type VecEdgeWalk<Graph> = Vec<<Graph as GraphBase>::EdgeIndex>;
Expand description

An edge walk that is represented as a vector of edge 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 arc and the index of the first join arc of the walk. Read more

Compute the amount of edges 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.

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

Compute the univocal extension of a walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first edge of W and R the longest univocal walk from the last edge of W. This variant handles not strongly connected graphs by forbidding L and R to repeat edges. Read more

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

Compute the univocal extension of a walk. That is the concatenation LWR, where W is the walk, L the longest R-univocal walk to the first edge of W and R the longest univocal walk from the last edge of W. This variant handles not strongly connected graphs by forbidding L and R to repeat edges. Read more

Returns the node walk represented by this edge walk. If this walk contains no edge, then None is returned. If there is a consecutive pair of edges not connected by a node, 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

Returns true if this is a valid circular walk in the given graph.