문제

Is there a fast cython/python library for doing maximum flow / minimum cut computations (preferably with Boykov-Kolmogorov) that has a BSD license?

A light-weight C library would also be useful.

도움이 되었습니까?

해결책

As detailed in this answer which also includes a simple benchmark, SciPy -- which is licensed under BSD-3 -- includes an implementation as of 1.4.0 as scipy.sparse.csgraph.maximum_flow.

다른 팁

There is Graph-Tool which is GPL licensed or Python-Graph which is MIT licensed, depending on what you can live with.

How about NetworkX? Check out their flow-related algorithms.

The license is BSD

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top