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.
In Networkx 2.4
node
was changed tonodes
. Here is a fix for that.grid_cell.row += consts.Consts.width
leads toIndexError
beacause ofconsts.Consts.width
which is a string. I guess that it should beconsts.Consts.grid_column_width
which equals to2
.https://networkx.org/documentation/stable/release/release_2.4.html#deprecations