|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
CompleteGraph
CompleteGraph[n]
gives the complete graph with n vertices
.
CompleteGraph[{n1, n2, ..., nk}]
gives the complete k-partite graph with
vertices
.
Details and OptionsDetails and Options
- CompleteGraph generates a Graph object.
- CompleteGraph[n] gives a graph with n vertices and an edge between every pair of vertices.
- CompleteGraph[{n1, n2, ..., nk}] gives a graph with
vertices partitioned into disjoint sets
with
vertices each and edges between all vertices in different sets
and
, but no edges between vertices in the same set
. - CompleteGraph[..., DirectedEdges->True] gives a directed complete graph.
- CompleteGraph takes the same options as Graph.
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




