How to add edge between two nodes in cytoscape.js? #3037
Unanswered
bengusuunal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can add nodes but not edge in cytoscape.js. Below I have shared the methods where I get the elements and add nodes. I can't find exactly where the problem is. I can define the newly created node like this: there is a node named "Entire log" where I currently hold my "res" object. When I click on one of the submenu I created from the keys of my "res" object, a new node is opened. But I can't create an edge between the two. I want to create an edge between the newly opened node and the old node. In the code seen below, an edge is created only once and its between the first node I created. When I create a node for the second time, no other edge is created. Shortly: Every time I create a node, an edge should be created with the node but I could not make it? If you have any ideas on this subject, can you share them with me?
Beta Was this translation helpful? Give feedback.
All reactions