Bruiser
Bruiser

Reputation: 55

Cytoscape graph builder (drag-and-drop new nodes)

I am looking to use Cytoscape.js to build an interactive web based graph builder. Is it possible to handle a drop event to create a new node or link? If not, what options, if any exist for interactive graph building using the API? It looks like I may be able to use the click event or the radial menu plugin to do something like this but I'm interested in other options. Are there any good examples out there of doing something like this?

Upvotes: 2

Views: 3275

Answers (1)

maxkfranz
maxkfranz

Reputation: 12242

Cytoscape.js has an extension API that can be used to create reusable components like you suggest. There are several existing extensions which you can use in addition to the documentation as examples.

It seems someone has made a similar extension, but it’s straightfoward to create your own using any of the documented API functions.

We’re working to streamline the extension writing and submission process so it’s easier to share your extensions with others in v2.3.

Upvotes: 2

Related Questions