Kuifje02 / vrpy

A python framework for solving the VRP and its variants with column generation.
MIT License
179 stars 43 forks source link

from_numpy_matrix() is ambiguous when edges have weight 0 #100

Open Kuifje02 opened 3 years ago

Kuifje02 commented 3 years ago

When using the networkx.from_numpy_matrix() method, there is a problem with edges with weight 0. Such edges are not created.

Should put a warning in the docs.

A dirty work around would be to set the weight to epsilon ~0.001. Needs more investigation.

Kuifje02 commented 3 years ago

https://github.com/networkx/networkx/issues/4876#issuecomment-861622870