GraphUtilities`
GraphUtilities`

StrongComponents

As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. >>

StrongComponents[g]

gives a list of all strongly connected components in the directed graph g.

Details

  • StrongComponents functionality is now available in the built-in Wolfram Language function ConnectedComponents.
  • To use StrongComponents, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
  • A strongly connected component of a directed graph is a set of vertices such that there is a path connecting any two vertices.

Examples

Basic Examples  (2)

This defines a small graph:

This finds all strong components of the graph:

StrongComponents has been superseded by ConnectedComponents: