cbegin_pstislo¶
-
inline const_pstislo_iterator libsemigroups::ActionDigraph::cbegin_pstislo(node_type const source, node_type const target, size_t const min = 0, size_t const max = POSITIVE_INFINITY) const¶
Returns a forward iterator pointing to the edge labels of the first path (in short-lex order) starting at the node
sourceand ending at the nodetargetwith length in the range \([min, max)\).PSTISLO = Path Source Target In Short Lex Order
If incremented, the iterator will point to the next least edge labelling of a path (in short-lex order). Iterators of the type returned by this function are equal whenever they point to equal objects.
- See
Warning
Copying iterators of this type is expensive. As a consequence, prefix incrementing
++itthe returned iteratoritsignificantly cheaper than postfix incrementingit++.Warning
If the action digraph represented by
thiscontains a cycle that is reachable fromsource, then there may be infinitely many paths starting atsource, and somaxshould be chosen with some care.- Parameters
source – the first node
target – the last node
min – the minimum length of a path to enumerate (defaults to
0)max – the maximum length of a path to enumerate (defaults to libsemigroups::POSITIVE_INFINITY).
- Throws
LibsemigroupsException – if
targetorsourceis not a node in the digraph.- Returns
An iterator
itof typeconst_pstislo_iteratorpointing to a libsemigroups::word_type consisting of the edge labels of the first path (in short-lex order) from the nodesourceto the nodetargetwith length in the range \([min, max)\) (if any).