Wolfram Language

Open live version

Make a Table of Graphs

Show graphs of increasing complexity in a table. This example appears in Stephen Wolframs video Introduction to the Wolfram Language.


code

X

how it works

This expression gives a list of depth-n trees that have three children at each level.

In[1]:=
X
Out[1]=

Applying LineGraph to the trees gives graphs whose vertices correspond to the edges of the trees. Vertices in a line graph are connected if the corresponding edges in the tree share a vertex.

In[2]:=
X
Out[2]=