VertexLabelStyle

VertexLabelStyle

is an option and property for Graph and related functions that specifies the style to use for vertex labels.

Details

  • Any style specification as used in Style can be used as a setting for VertexLabelStyle.
  • Typical forms of settings include:
  • Automaticuse automatic setting
    styleuse style for all vertices
    {v1style1,v2style2,}use stylei for vertex vi
    {patt1style1,patt2style2,}use stylei for vertices matching the pattern patti
  • Color directives such as Red, as well as text specifications such as Bold or Small, can be given.
  • Giving the option setting VertexLabelStyle->style is effectively equivalent to replacing the label-like elements of a formatting or related construct by Style[label,style].

Examples

open allclose all

Basic Examples  (2)

Set the style for all vertex labels:

Specify the style for individual vertex labels:

Scope  (4)

VertexLabelStyle can be used for general graphs:

Matrix graphs:

Special graphs:

Random graphs:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_vertexlabelstyle, author="Wolfram Research", title="{VertexLabelStyle}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/VertexLabelStyle.html}", note=[Accessed: 17-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_vertexlabelstyle, organization={Wolfram Research}, title={VertexLabelStyle}, year={2010}, url={https://reference.wolfram.com/language/ref/VertexLabelStyle.html}, note=[Accessed: 17-December-2024 ]}