getFlow method

num getFlow(
  1. T from,
  2. T to
)

Gets the flow value on a specific edge

Implementation

num getFlow(T from, T to) {
  final edge = _findEdge(flowNetwork, from, to);
  return edge?.flow ?? 0;
}