Get elements in the graph matching the specified selector. http://js.cytoscape.org/#cy.$
Get an element from its ID in a very performant way. http://js.cytoscape.org/#cy.getElementById
Add elements to the graph and return them.
Allow for manipulation of elements without triggering multiple style calculations or multiple redraws. http://js.cytoscape.org/#cy.batch A callback within which you can make batch updates to elements.
Get a collection from elements in the graph matching the specified selector or from an array of elements. If no parameter specified, an empty collection will be returned
Optional
eles: string | CollectionArgument[]A convenience function to explicitly destroy the Core. http://js.cytoscape.org/#cy.destroy
Get whether the instance of Cytoscape.js has been destroyed or not. https://js.cytoscape.org/#cy.destroyed
Get edges in the graph matching the specified selector.
Optional
selector: stringGet elements in the graph matching the specified selector. http://js.cytoscape.org/#cy.$
Optional
selector: stringAllow for manipulation of elements without triggering multiple style calculations or multiple redraws. http://js.cytoscape.org/#cy.batch
Ends batching manually (useful for asynchronous cases).
Get elements in the graph matching the specified selector or filter function.
Get an element from its ID in a very performant way. http://js.cytoscape.org/#cy.getElementById
Attaches the instance to the specified container for visualisation. http://js.cytoscape.org/#cy.mount
If the core instance is headless prior to calling cy.mount(), then the instance will no longer be headless and the visualisation will be shown in the specified container. If the core instance is non-headless prior to calling cy.mount(), then the visualisation is swapped from the prior container to the specified container.
Get nodes in the graph matching the specified selector.
Optional
selector: stringRemove elements in collecion or match the selector from the graph and return them.
Allow for manipulation of elements without triggering multiple style calculations or multiple redraws. http://js.cytoscape.org/#cy.batch
Starts batching manually (useful for asynchronous cases).
Remove the instance from its current container. http://js.cytoscape.org/#cy.unmount
This function sets the instance to be headless after unmounting from the current container.
These are the principle functions used to interact with the graph model.
http://js.cytoscape.org/#core/graph-manipulation