/** * Unregister this species from the boids graph. * * <p>This removes all boids pertaining to this species, and release the link with the graph. */ public void release() { pop.release(); Iterator<Node> i = ctx.getNodeIterator(); while (i.hasNext()) { Boid b = (Boid) i.next(); if (b.getSpecies() == this) { i.remove(); } } }