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:
senft-desktop 2012-11-30 17:47:48 +01:00
parent 2d9fad0b8d
commit 01d71acc2b

View File

@ -68,7 +68,7 @@ public class RandomGenerator2 {
}
private void kill() {
if (nodes.isEmpty())
if (nodes.size() < 2)
return;
Node randomNode;
while ((randomNode = getRandomNode()) == firstNode) {