VertexLabeling

As of Version 12.0, VertexLabeling has been superseded by VertexLabels.

VertexLabeling

is an option for GraphPlot and related functions which specifies whether labeling should be included by default for vertices in graphs.

Details

  • VertexLabeling->True shows each vertex with its name given in a box.
  • VertexLabeling->False displays each vertex as a point.
  • VertexLabeling->Tooltip displays each vertex as a point, but gives its name in a tooltip.
  • VertexLabeling->Automatic displays each vertex as a point, giving its name in a tooltip if the number of vertices is not too large.
  • VertexLabeling->All displays the name of each vertex both explicitly and in a tooltip.
  • Any explicit setting for VertexRenderingFunction overrides the setting for VertexLabeling.

Examples

open allclose all

Basic Examples  (4)

Show vertex labeling:

Show vertex labeling as tooltips only:

Show vertex labeling both as labels and as tooltips:

Show vertex labeling as tooltips only if the graph is small:

Scope  (5)

Show vertex labeling:

Show vertex labeling as tooltips only:

Show vertex labeling both as labels and as tooltips:

Show vertex labeling as tooltips only if the graph is small:

But not when the graph is large:

Show vertex labeling as tooltips:

Wolfram Research (2007), VertexLabeling, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexLabeling.html.

Text

Wolfram Research (2007), VertexLabeling, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexLabeling.html.

CMS

Wolfram Language. 2007. "VertexLabeling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VertexLabeling.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_vertexlabeling, author="Wolfram Research", title="{VertexLabeling}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/VertexLabeling.html}", note=[Accessed: 28-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_vertexlabeling, organization={Wolfram Research}, title={VertexLabeling}, year={2007}, url={https://reference.wolfram.com/language/ref/VertexLabeling.html}, note=[Accessed: 28-March-2024 ]}