Ask Your Question

Revision history [back]

You are right the doc is not consistent with the actual output, thanks for reporting ! It is now trac ticket 20800

The result is indeed a list of strongly connected components, so to get their number, you just have to do, if G is a digraph:

sage: len(G.strongly_connected_components())