graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
398 stars 109 forks source link

Fixes a Path.add logic to prevent edges that are not connected to be added. #344

Closed Tapanito closed 4 years ago

Tapanito commented 4 years ago

Previous logic allowed users to add any edge to the path when path length was one. This addresses that issue. In addition, I updated invalid state logic to be more strict. Previously, an error would be logged to the logger, but the code was allowed to continue running. This can cause unintended side affects in the user's code when using this library.

Tapanito commented 4 years ago

Thanks for pointing this out.