Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Graph Utilities Package >

WeakComponents

WeakComponents[g]
gives a list of all weakly connected components in the undirected graph g.
  • A weakly connected component of a directed graph is a set of vertices such that for each pair of vertices, there is a path between them. The graph g is considered as undirected.
Needs["GraphUtilities`"]
This shows that the following graph has 2 weakly connected components:
In[2]:=
Click for copyable input
Out[2]=
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team