-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

user2352554
  • 521
  • 4
  • 17

1 Answers1

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.

Stephan T.
  • 5,843
  • 3
  • 20
  • 42