From 558a479ff72d13ec6849da973f4491e53fbf385d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 14 Mar 2016 14:20:00 +0100 Subject: Change json attributes --- src/main/java/org/openslx/graph/Graph.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/openslx/graph/Graph.java') 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 visibleNodes, int iterations ) + private void doLayout( Set visibleNodes, int iterations ) { // For performance, copy each set into an array. -- cgit v1.2.3-55-g7522