此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

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
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]=