Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Graph Utilities Package >

ToCombinatoricaGraph

ToCombinatoricaGraph[g]
returns the Combinatorica representation of the graph g.
ToCombinatoricaGraph[g, n]
returns 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 "SpringEmbedding":
A second argument specifying fewer vertices than those contained in the graph is ignored:
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team