graphstream / gs-core

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

Graphstream may livelock: fail fast on inconsistent parameters #358

Open DanySK opened 3 years ago

DanySK commented 3 years ago

Hi, I noticed that some parameters combination cause graphstream 2.0 to loop. For instance, creating a Lobster with parameters (1, 1) causes the library to loop indefinitely. Parameter coherence should be checked upfront, and I'd recommend a fail-fast policy, so that clients immediately know when they are doing things incorrectly.