Skip to content

Commit e8ccc2f

Browse files
committed
Fix adding of edges to graph in pushGraph (should be addEdge instead of addNode)
1 parent d30c97a commit e8ccc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/sigmapublic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function SigmaPublic(sigmaInstance) {
150150
validID = edge['source'] && edge['target'] && edge['id'];
151151
validID &&
152152
(!safe || !s.graph.edgesIndex[edge['id']]) &&
153-
self.addNode(
153+
self.addEdge(
154154
edge['id'],
155155
edge['source'],
156156
edge['target'],

0 commit comments

Comments
 (0)