public void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed) { EadesParticle p1, p2; Spring spring; p1 = (EadesParticle) particles.get(fromNodeId); p2 = (EadesParticle) particles.get(toNodeId); spring = getNewSpring(p1, p2); springs.put(edgeId, spring); p1.springs.put(p2, spring); p2.springs.put(p1, spring); stabilization = 0; }
public void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed) { EadesParticle p1, p2; Spring spring; p1 = (EadesParticle) particles.get(fromNodeId); p2 = (EadesParticle) particles.get(toNodeId); spring = getNewSpring(p1, p2); springs.put(edgeId, spring); p1.springs.put(p2, spring); p2.springs.put(p1, spring); stabilization = 0; }