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.

更多信息更多信息

范例范例打开所有单元关闭所有单元

基本范例 (1)基本范例 (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 »