@not_implemented_for('undirected')
def number_strongly_connected_components(G):
 return len(list(strongly_connected_components(G)))

@ not_implemented_for ( 'undirected' ) def number_strongly_connected_components ( G ) : return len ( list ( strongly_connected_components ( G ) ) )
return number of strongly connected components in graph .