WeaklyConnectedComponents

WeaklyConnectedComponents[g]
gives the weakly connected components of directed graph as lists of vertices.

DetailsDetails

New to Mathematica? Find your learning path »
Have a question? Ask support »