WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

VertexWeight

is an option and annotation for Graph and related functions that specifies a vertex weight.

Details
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
History
Cite this Page

VertexWeight

is an option and annotation for Graph and related functions that specifies a vertex weight.

Details

  • The following option settings can be used:
  • {w1,w2,} give all vertex weights in the same order as used by VertexList
  • The wrapper Annotation [v,VertexWeight->w] can be used when creating graphs in functions such as Graph etc.
  • The weight can be any expression.
  • The weight can be interpreted as cost or capacity, or have other special meanings for different graph computation functions.

Examples

Basic Examples  (2)

Set the weight for all vertices:

Use any expression as a weight:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2025_vertexweight, author="Wolfram Research", title="{VertexWeight}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/VertexWeight.html}", note=[Accessed: 04-January-2026]}

BibLaTeX

@online{reference.wolfram_2025_vertexweight, organization={Wolfram Research}, title={VertexWeight}, year={2010}, url={https://reference.wolfram.com/language/ref/VertexWeight.html}, note=[Accessed: 04-January-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /