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


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

- VertexShape can be any Graphics, Graphics3D, or Image object.
- The rendered form of each vertex is obtained by rescaling the given object.
- The following settings for VertexShape can be used:
-
Automatic use preset default vertex shape Inherited use the vertex name as a shape g use the graphic g for all vertices {v1->g1,v2->g2,…} use gi for vertex vi
Examples
open all close allBasic Examples (2)
Draw vertex shapes using any Graphics, Image, or Graphics3D:
Scope (8)
VertexShape can be used for general graphs:
Use Annotation to specify vertex shape:
VertexShape can be combined with VertexSize:
VertexShape works with patterns:
VertexShape is not affected by VertexStyle:
VertexShapeFunction has higher priority than VertexShape:
Related Guides
Text
Wolfram Research (2010), VertexShape, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexShape.html (updated 2015).
CMS
Wolfram Language. 2010. "VertexShape." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/VertexShape.html.
APA
Wolfram Language. (2010). VertexShape. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexShape.html
BibTeX
@misc{reference.wolfram_2025_vertexshape, author="Wolfram Research", title="{VertexShape}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/VertexShape.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_vertexshape, organization={Wolfram Research}, title={VertexShape}, year={2015}, url={https://reference.wolfram.com/language/ref/VertexShape.html}, note=[Accessed: 15-August-2025]}