-1

I am using cutoscape.js library for visualizing graphs in web. i want to add some node and edges between them. adding node is simple. i want to draw an edge between source node and destination node with drag and drop. If you can help me, i will appreciate you .

Thanks

1 Answer 1

2

Please do your research first, this can be solved by simply going over to the docs and browsing throug the extensions:

let cy = cytoscape({
  container: document.getElementById('#cy'),
    /* ... */
});

let defaults = { /* ... */ };

let eh = cy.edgehandles( defaults );

If you need an example, take a look at this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.