summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/graph/Graph.java
diff options
context:
space:
mode:
authorSimon Rettberg2016-03-14 14:20:00 +0100
committerSimon Rettberg2016-03-14 14:20:00 +0100
commit558a479ff72d13ec6849da973f4491e53fbf385d (patch)
treef38e46362d96b6ac50379f13bf3f81cd5724175d /src/main/java/org/openslx/graph/Graph.java
parentRed color for links between servers. (diff)
downloaddnbd3-status-558a479ff72d13ec6849da973f4491e53fbf385d.tar.gz
dnbd3-status-558a479ff72d13ec6849da973f4491e53fbf385d.tar.xz
dnbd3-status-558a479ff72d13ec6849da973f4491e53fbf385d.zip
Change json attributes
Diffstat (limited to 'src/main/java/org/openslx/graph/Graph.java')
-rw-r--r--src/main/java/org/openslx/graph/Graph.java4
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.