Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 513 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 513 Bytes

pyphlow

A Python implementation of the Misiolek-Chen flow network simplification algorithms as seen in these papers.

Dependencies

Requires NetworkX.

Example

import networkx, pyphlow
G = networkx.Graph()
G.add_edges_from([(1,2),(2,6)])
G.add_cycle([2,3,4,5])
G.node[1]['source']=True
G.node[6]['sink']=True
S = pyphlow.simplify(G)