CompleteGraph[n]
creates a complete graph on n vertices. An option Type that takes on the values Directed or Undirected is allowed. The default setting for this option is Type->Undirected.
CompleteGraph[a,b,c,…]
creates a complete -partite graph of the prescribed shape. The use of CompleteGraph to create a complete
-partite graph is obsolete; use CompleteKPartiteGraph instead.


CompleteGraph
CompleteGraph[n]
creates a complete graph on n vertices. An option Type that takes on the values Directed or Undirected is allowed. The default setting for this option is Type->Undirected.
CompleteGraph[a,b,c,…]
creates a complete -partite graph of the prescribed shape. The use of CompleteGraph to create a complete
-partite graph is obsolete; use CompleteKPartiteGraph instead.
Details and Options
- CompleteGraph functionality is now available in the built-in Wolfram Language function CompleteGraph.
- To use CompleteGraph, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Tech Notes
Related Guides
-
▪
- Built-in Graphs ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
Text
Wolfram Research (2012), CompleteGraph, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/CompleteGraph.html.
CMS
Wolfram Language. 2012. "CompleteGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/CompleteGraph.html.
APA
Wolfram Language. (2012). CompleteGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/CompleteGraph.html
BibTeX
@misc{reference.wolfram_2025_completegraph, author="Wolfram Research", title="{CompleteGraph}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/CompleteGraph.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_completegraph, organization={Wolfram Research}, title={CompleteGraph}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/CompleteGraph.html}, note=[Accessed: 14-August-2025]}