AddVertices[g,n]
adds n disconnected vertices to graph g.
AddVertices[g,vList]
adds vertices in vList to g. vList contains embedding and graphics information and can have the form {x,y} or {{x1,y1},{x2,y2}…} or the form {{{x1,y1},g1},{{x2,y2},g2},…}, where {x,y}, {x1,y1}, and {x2,y2} are point coordinates and g1 and g2 are graphics information associated with vertices.


AddVertices
AddVertices[g,n]
adds n disconnected vertices to graph g.
AddVertices[g,vList]
adds vertices in vList to g. vList contains embedding and graphics information and can have the form {x,y} or {{x1,y1},{x2,y2}…} or the form {{{x1,y1},g1},{{x2,y2},g2},…}, where {x,y}, {x1,y1}, and {x2,y2} are point coordinates and g1 and g2 are graphics information associated with vertices.
Details and Options
- AddVertices functionality is now available in the built-in Wolfram Language function VertexAdd.
- To use AddVertices, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Tech Notes
Related Guides
-
▪
- Constructing 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), AddVertices, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/AddVertices.html.
CMS
Wolfram Language. 2012. "AddVertices." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/AddVertices.html.
APA
Wolfram Language. (2012). AddVertices. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/AddVertices.html
BibTeX
@misc{reference.wolfram_2025_addvertices, author="Wolfram Research", title="{AddVertices}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/AddVertices.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_addvertices, organization={Wolfram Research}, title={AddVertices}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/AddVertices.html}, note=[Accessed: 14-August-2025]}