This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ToCombinatoricaGraph

ToCombinatoricaGraph[g]
return the Combinatorica representation of the graph g.

return the graph g, adding additional unconnected vertices, if necessary, to create a graph with n vertices.
  • The following option can be given:
MethodAutomaticmethod used to lay out the graph
This defines a simple graph:
This shows the Combinatorica object:
This uses the optional second argument to pad the graph with additional, unconnected, vertices:
Needs["GraphUtilities`"]
This defines a simple graph:
In[2]:=
Click for copyable input
This shows the Combinatorica object:
In[3]:=
Click for copyable input
Out[3]=
This uses the optional second argument to pad the graph with additional, unconnected, vertices:
In[4]:=
Click for copyable input
Out[4]=
This defines a simple graph:
This contrasts the Combinatorica representation of the graph with the drawing by GraphPlot:
This uses the spring embedding method to find the coordinates:
This defines a Combinatorica object:
If the input to ToCombinatoricaGraph is already a Combinatorica object, it is not changed:
This adds extra vertices:
This adds extra vertices, but using :
A second argument specifying fewer vertices than those contained in the graph is ignored: