Skip to content
프로젝트

소개

플로 네트워크를 만들고 최대 유량/최소 컷을 계산하는 Python 라이브러리(Python용 그래프 컷 라이브러리)

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

PyMaxflow

PyMaxflow is a Python library for graph construction and maxflow computation (commonly known as graph cuts).

doc/source/_static/small_layout_07.png

The core of this library is the C++ implementation by Vladimir Kolmogorov, which can be downloaded from his homepage. Besides the wrapper to the C++ library, PyMaxflow offers

  • NumPy integration,
  • methods for fast construction of common graph layouts in computer vision and graphics,
  • implementation of algorithms for fast energy minimization which use the maxflow method: the αβ-swap and the α-expansion.

Take a look at the PyMaxflow documentation.

Example layouts

PyMaxflow offers methods to easily build advanced network layouts with a few API calls. These are examples from layout_examples.py.

doc/source/_static/montage.png

Installation

Open a terminal and write:

$ pip install PyMaxflow

Manual installation

Download the source code or clone the Github repository. Open a terminal and write:

$ cd path/to/PyMaxflow
$ python setup.py build
... lots of text ...

If everything went fine, you should be able to install the package with:

$ python setup.py install

관련 프로젝트 살펴보기

불러오는 중…