« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Legends

Highlight Relationships in a Network 

Show the groups centered around three people at a family gathering.

In[1]:=
Click for copyable input
X
Out[1]=

Highlight the connections to David, Linda, and Oscar in different colors.

In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
Out[3]=

Create a line legend that matches the correct style to each person and combine it with the highlighted network.

In[4]:=
Click for copyable input
X
Out[4]=

Combine the legend with the graph.

In[5]:=
Click for copyable input
X
Out[5]=