KrzyHonk / bpmn-python

Project for creating a Python library that allows to import/export BPMN diagram (as an XML file) and provides a simple visualization capabilities
GNU General Public License v3.0
65 stars 44 forks source link

Adjust to Networkx 2.5 #45

Open soniaradon opened 3 years ago

soniaradon commented 3 years ago

In Networkx 2.4 node was changed to nodes. Here is a fix for that.

grid_cell.row += consts.Consts.width leads to IndexError beacause of consts.Consts.width which is a string. I guess that it should be consts.Consts.grid_column_width which equals to 2.

https://networkx.org/documentation/stable/release/release_2.4.html#deprecations