Minor bug, that halted the RandomGenerator. Seems pretty stable now. I can create very big networs (1000 rounds) without any problems
This commit is contained in:
parent
2d9fad0b8d
commit
01d71acc2b
@ -68,7 +68,7 @@ public class RandomGenerator2 {
|
||||
}
|
||||
|
||||
private void kill() {
|
||||
if (nodes.isEmpty())
|
||||
if (nodes.size() < 2)
|
||||
return;
|
||||
Node randomNode;
|
||||
while ((randomNode = getRandomNode()) == firstNode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user