AddEdges[g,edgeList]
gives graph g with the new edges in edgeList added. edgeList can have the form {a,b} to add a single edge {a,b} or the form {{a,b},{c,d},…}, to add edges {a,b},{c,d},… or the form {{{a,b},x},{{c,d},y},…}, where x and y can specify graphics information associated with {a,b} and {c,d}, respectively.


AddEdges
AddEdges[g,edgeList]
gives graph g with the new edges in edgeList added. edgeList can have the form {a,b} to add a single edge {a,b} or the form {{a,b},{c,d},…}, to add edges {a,b},{c,d},… or the form {{{a,b},x},{{c,d},y},…}, where x and y can specify graphics information associated with {a,b} and {c,d}, respectively.
Details and Options
- AddEdges functionality is now available in the built-in Wolfram Language function EdgeAdd.
- To use AddEdges, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Tech Notes
Related Guides
-
▪
- Constructing Graphs ▪
- Graph Construction and Representations ▪
- 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), AddEdges, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/AddEdges.html.
CMS
Wolfram Language. 2012. "AddEdges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/AddEdges.html.
APA
Wolfram Language. (2012). AddEdges. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/AddEdges.html
BibTeX
@misc{reference.wolfram_2025_addedges, author="Wolfram Research", title="{AddEdges}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/AddEdges.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_addedges, organization={Wolfram Research}, title={AddEdges}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/AddEdges.html}, note=[Accessed: 14-August-2025]}