pmneila/PyMaxflow

Unidirectional Edge

tkhan1994 opened this issue · 1 comments

Hi,
I was wondering if it is possible to add a unidirectional edge between two nodes using the add_edge method?

Thanks

Hi,

Yes. Just set the capacity to 0:

g.add_edge(nodes[0], nodes[1], 1, 0)