diff options
Diffstat (limited to 'src/main/java/org/openslx/graph/Graph.java')
-rw-r--r-- | src/main/java/org/openslx/graph/Graph.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/graph/Graph.java b/src/main/java/org/openslx/graph/Graph.java index 65110f6..7f7ca64 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.setWeight( weight );
+ edge.addWeight( weight );
}
// Remove a Node from the Graph, along with all of its emanating Edges.
|