diff options
Diffstat (limited to 'src/main/java/org/openslx/graph/Graph.java')
-rw-r--r-- | src/main/java/org/openslx/graph/Graph.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/graph/Graph.java b/src/main/java/org/openslx/graph/Graph.java index b3ab8b2..65110f6 100644 --- a/src/main/java/org/openslx/graph/Graph.java +++ b/src/main/java/org/openslx/graph/Graph.java @@ -99,7 +99,7 @@ public class Graph implements java.io.Serializable _edges.put( edge, edge );
}
// Set the edge weight.
- edge.addWeight( weight );
+ edge.setWeight( weight );
}
// Remove a Node from the Graph, along with all of its emanating Edges.
@@ -207,7 +207,7 @@ public class Graph implements java.io.Serializable private static final double MOVEMENT_SLOWDOWN = 0.001;
// Applies the spring embedder.
- public void doLayout( Set<Node> visibleNodes, int iterations )
+ private void doLayout( Set<Node> visibleNodes, int iterations )
{
// For performance, copy each set into an array.
|