// Capacity return capacity for an edge
Capacity return capacity for an edge
// Capacity return capacity for an edge
func (f *FlowNetwork) Capacity(e graph.EdgeID) EdgeFlowUnit {
	c, ok := f.capacities[e]
	if !ok {
		return 0
	}
	return c
}
func ( f * FlowNetwork ) Capacity ( e graph . EdgeID ) EdgeFlowUnit { c , ok := f . capacities [ e ] if ! ok { return 0 } return c }
Capacity return capacity for an edge
Capacity return capacity for an edge