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


  • The following option settings can be used:
  • Automaticautomatically determine edge capacities
    "prop"use the annotation "prop" as a capacity
    {vivj->cij,}edge v_(i)v_(j) has capacity c_(ij) etc.
    {c1,c2,}give all edge capacities in the same order as used by EdgeList
    {pattern->c,}edge that matches the pattern has capacity c
  • With the setting vivj->{lij,uij}, lij and uij are taken to be the lower bound capacity and the upper bound capacity for the edge vivj.
  • The wrapper Annotation[vivj,EdgeCapacity->c] can be used when creating graphs in functions such as Graph etc.
  • The capacity c_(i) can be any expression.
  • Edge capacities can have special meanings for different graph computation functions.


Basic Examples  (3)

Set a capacity for all edges:

Use any expression as a capacity:

Get EdgeCapacity for a given edge:

Introduced in 2012