You are on page 1of 1

In[1]:= Needs@"Combinatorica`"D;

Needs@"GraphUtilities`"D;

In[3]:= g = 81 ® 1, 2 ® 2, 3 ® 3<

Out[3]= 81 ® 1, 2 ® 2, 3 ® 3<

In[4]:= AdjacencyMatrix@gD  MatrixForm

Out[4]//MatrixForm=
1 0 0
0 1 0
0 0 1

In[5]:= GraphPlot@g, VertexLabeling ® True, DirectedEdges ® TrueD

2 1

Out[5]=

You might also like