Commit 849616f5 authored by gsavin's avatar gsavin

..

parent 5b92456d
......@@ -146,6 +146,9 @@ public class Boid extends AdjacencyListNode {
if (getEdgeBetween(b2) == null)
getGraph().addEdge(getEdgeId(this, b2), this, b2);
}
} else {
while (getDegree() > 0)
getGraph().removeEdge(getEdge(0));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment