New in Wolfram Mathematica 8: Graph & Network Analysis  previous  |  next 

Application Areas

Topological Sorting 

Using Mathematica 8, it is easy to construct the condensation of a graph and then find a topological ordering of the strongly connected components. Compare adjacency matrices before and after reordering of vertices.
In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
In[4]:=
Click for copyable input
X
In[5]:=
Click for copyable input
X
In[6]:=
Click for copyable input
X
Out[6]=