EdgeWeight
is an option and annotation for Graph and related functions that specifies an edge weight.
Details

- The following option settings can be used:
-
Automatic automatically determine edge weights {vivj->wij,…} edge has weight
etc.
{w1,w2,…} give all edge weights in the same order as used by EdgeList {patternw,…} edge that matches the pattern has weight w - The wrapper Annotation[vivj,EdgeWeight->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 can have other special meanings for different graph computation functions.
Examples
Wolfram Research (2010), EdgeWeight, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeWeight.html (updated 2020).
Text
Wolfram Research (2010), EdgeWeight, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeWeight.html (updated 2020).
CMS
Wolfram Language. 2010. "EdgeWeight." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/EdgeWeight.html.
APA
Wolfram Language. (2010). EdgeWeight. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeWeight.html