SetEdgeLabels[g,l]
assigns the labels in l to edges of g.


SetEdgeLabels
SetEdgeLabels[g,l]
assigns the labels in l to edges of g.
Details and Options
- SetEdgeLabels functionality is now available in the built-in Wolfram Language function EdgeLabels.
- To use SetEdgeLabels, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
- If l is shorter than the number of edges in g, then labels get assigned cyclically.
- If l is longer than the number of edges in g, then the extra labels are ignored.
See Also
Tech Notes
Related Guides
-
▪
- Displaying 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), SetEdgeLabels, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/SetEdgeLabels.html.
CMS
Wolfram Language. 2012. "SetEdgeLabels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/SetEdgeLabels.html.
APA
Wolfram Language. (2012). SetEdgeLabels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/SetEdgeLabels.html
BibTeX
@misc{reference.wolfram_2025_setedgelabels, author="Wolfram Research", title="{SetEdgeLabels}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/SetEdgeLabels.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_setedgelabels, organization={Wolfram Research}, title={SetEdgeLabels}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/SetEdgeLabels.html}, note=[Accessed: 16-August-2025]}