Combinatorica`
Combinatorica`

SetVertexLabels

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »

SetVertexLabels[g,l]

assigns the labels in l to vertices of g.

Details and Options

  • SetVertexLabels functionality is now available in the built-in Wolfram Language function VertexLabels.
  • To use SetVertexLabels, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
  • If l is shorter than the number of vertices in g, then labels get assigned cyclically.
  • If l is longer than the number of vertices in g, then the extra labels are ignored.
Wolfram Research (2012), SetVertexLabels, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html.

Text

Wolfram Research (2012), SetVertexLabels, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html.

CMS

Wolfram Language. 2012. "SetVertexLabels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html.

APA

Wolfram Language. (2012). SetVertexLabels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html

BibTeX

@misc{reference.wolfram_2023_setvertexlabels, author="Wolfram Research", title="{SetVertexLabels}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_setvertexlabels, organization={Wolfram Research}, title={SetVertexLabels}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/SetVertexLabels.html}, note=[Accessed: 19-March-2024 ]}