friendlysam.parts.FlowNetwork.get_flow

FlowNetwork.get_flow(n1, n2)

Get a flow between two nodes.

Parameters:
  • n1 – The node the flow goes from.
  • n2 – The node the flow goes to.
Returns:

a VariableCollection

Raises:

KeyError – If the flow does not exist.