MATHEMATICA FEATURED EXAMPLE

Find a Topological Ordering of Connected Graph Components

    
In[51]:=
Click for copyable input
In[52]:=
Click for copyable input
In[53]:=
Click for copyable input
In[54]:=
Click for copyable input
In[55]:=
Click for copyable input
View the graphs and compare adjacency matrices before and after the reordering of vertices:
In[56]:=
Click for copyable input
Out[56]=
New to Mathematica? Find your learning path »
Have a question? Ask support »