nr_scc¶
-
inline size_t libsemigroups::ActionDigraph::nr_scc() const¶
Returns the number of strongly connected components in
this.- Complexity
At most \(O(mn)\) where
mis nr_nodes() andnis out_degree().- Parameters
(None)
- 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. If an exception is thrown,thismight be modified but is guaranteed to be in a valid state (basic exception guarantee).- Returns
A
size_t.