cbegin_scc¶
-
inline const_iterator_scc libsemigroups::ActionDigraph::cbegin_scc(scc_index_type i) const¶
Returns an iterator pointing to the first node in the scc with the specified id-number.
- Complexity
At most \(O(mn)\) where
mis nr_nodes() andnis out_degree().
Note
If an exception is thrown,
thismight be modified but is guaranteed to be in a valid state (basic exception guarantee).- Parameters
i – the id-number of the scc.
- Throws
LibsemigroupsException – if it is not the case that every node has exactly out_degree() out-neighbors. In other words, if neighbor() is libsemigroups::UNDEFINED for any node
ndand any labellbl.LibsemigroupsException – if
iis not in the range0tonr_scc()- 1.
- Returns