is an option and property for Graph and related functions that specifies the size used for vertices.


VertexSize
is an option and property for Graph and related functions that specifies the size used for vertices.
Details

- The following settings can be used:
-
Automatic automatically compute size Tiny,Small,Medium,Large use tiny, small, etc. sizes {"Nearest",s} fraction of minimum distance between vertex coordinates {"Scaled",s} fraction of overall diagonal for all vertex coordinates {sx,sy} specify size in the x and y direction {v1s1,v2s2,…} use si for vertex vi {patt1s1,patt2s2,…} use si for vertices matching the pattern patti - VertexSize->s for a number s is taken to be VertexSize->{"Nearest",s}.
- A size {sx,sy} indicates a rectangle region with center {x,y}, lower-left corner {x-sx,y-sy}, and upper-right corner {x+sx,y+sy}.
Examples
open all close allBasic Examples (2)
Scope (12)
Use a fraction of the minimum distance between vertex coordinates:
Use a fraction of overall diagonal for all vertex coordinates:
Specify size in both and
directions:
VertexSize can be used for general graphs:
Use VertexSize in an Annotation wrapper:
VertexSize works with patterns:
VertexSize can be combined with VertexShapeFunction:
VertexSize can be combined with VertexShape:
Related Guides
History
Text
Wolfram Research (2010), VertexSize, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexSize.html.
CMS
Wolfram Language. 2010. "VertexSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VertexSize.html.
APA
Wolfram Language. (2010). VertexSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexSize.html
BibTeX
@misc{reference.wolfram_2025_vertexsize, author="Wolfram Research", title="{VertexSize}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/VertexSize.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_vertexsize, organization={Wolfram Research}, title={VertexSize}, year={2010}, url={https://reference.wolfram.com/language/ref/VertexSize.html}, note=[Accessed: 10-August-2025]}