Commit a8c7da23 authored by gsavin's avatar gsavin

Minor fix and warnings removal

parent 2e34e7ca
......@@ -32,7 +32,6 @@ package org.graphstream.ui.layout;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Random;
import org.graphstream.algorithm.generator.BarabasiAlbertGenerator;
......@@ -358,7 +357,7 @@ public class Eades84Layout extends PipeBase implements Layout {
// sum.fill(0);
Iterator<EadesParticle> it = particles.values().iterator();
double i = 0;
//double i = 0;
while (it.hasNext()) {
EadesParticle p = it.next();
......@@ -377,7 +376,7 @@ public class Eades84Layout extends PipeBase implements Layout {
v.scalarMult(f);
sum.add(v);
i++;
//i++;
}
}
......
......@@ -136,8 +136,8 @@ public class HierarchicalLayout extends PipeBase implements Layout {
visited.add(n);
if (p.level != 0 || p.order != order) {
p.level = 0;
if (p.level != level || p.order != order) {
p.level = level;
p.order = order;
p.changed = true;
}
......
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