VertexCapacity

VertexCapacity

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

Details

  • The following option settings can be used:
  • Automaticautomatically determine vertex capacities
    "prop"use the annotation "prop" as a capacity
    {v1->c1,v2->c2,}vertex vi has capacity ci etc.
    {c1,c2,}give all vertex capacities in the same order as used by VertexList
    {pattern->c,}vertex that matches the pattern has capacity c
  • The wrapper Annotation[v,VertexCapacity->c] can be used when creating graphs in functions such as Graph etc.
  • The weight c_(i) can be any expression.
  • Vertex capacities can have special meanings for different graph computation functions.

Examples

Basic Examples  (3)

Set a capacity for all vertices:

Use any expression as a capacity:

Get VertexCapacity for a given vertex:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_vertexcapacity, organization={Wolfram Research}, title={VertexCapacity}, year={2012}, url={https://reference.wolfram.com/language/ref/VertexCapacity.html}, note=[Accessed: 21-December-2024 ]}