pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
246 stars 59 forks source link

Support for newest networkx #47

Closed rajkataria closed 4 years ago

rajkataria commented 4 years ago

The current version of the library is incompatible with networkx. I believe networkx has changed the way that nodes are accessed. From g.node[n] -> g.nodes[n]

(Pdb) g.get_nx_graph() *** AttributeError: 'DiGraph' object has no attribute 'node'

pmneila commented 4 years ago

Hi @rajkataria

Thanks for letting me know. I will fix this.

pmneila commented 4 years ago

Took some time but this is fixed now. Thank you again for the notice :)

Best.