VertexRenderingFunction

As of Version 12.0, VertexRenderingFunction has been superseded by VertexShapeFunction.

VertexRenderingFunction

is an option for GraphPlot and related functions that gives a function to generate the graphics primitives to use in rendering each vertex.

Details

  • VertexRenderingFunction->f specifies that each vertex should be rendered with the graphics primitives given by f[rk,vk], where rk is the coordinate position where the vertex is being placed, and vk is its name.
  • The graphics primitives obtained by applying VertexRenderingFunction are in effect directly spliced into the graphic generated by a function like GraphPlot. Inset can be used to insert an arbitrary expression.
  • VertexRenderingFunction->({}&) draws nothing for each vertex.
  • VertexRenderingFunction->Automatic renders vertices according to the style specified by VertexLabeling.
  • Settings for PlotStyle define defaults that can be overridden by explicit directives in VertexRenderingFunction.

Examples

open allclose all

Basic Examples  (4)

Draw each vertex using its labels in a disk:

Do not draw a vertex at all:

Use graphics:

Draw vertices as spheres:

Scope  (2)

For large graphs, it is often better not to display vertices:

Draw vertices as graphics:

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

Text

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2020_vertexrenderingfunction, organization={Wolfram Research}, title={VertexRenderingFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/VertexRenderingFunction.html}, note=[Accessed: 05-March-2021 ]}

CMS

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

APA

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