ToCombinatoricaGraph

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


returns the graph g, adding additional unconnected vertices, if necessary, to create a graph with n vertices.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »