Export the graph as GraphML.
cy.graphml( cyGraphML )
Import the graph as GraphML.
cy.graphml( optionsObj )
Updates the specified options of extension.
node:css: falsedata: trueposition: truediscludeds:edge:css: falsedata: truediscludeds:layoutBy: "cose" // string of layout name or layout function
- Cytoscape.js ^3.2.0
- jQuery ^1.7 || ^2.0 || ^3.0
Download the library:
- via npm:
npm install cytoscape-graphml,
- via bower:
bower install cytoscape-graphml, or
- via direct download in the repository (probably from a tag).
require() the library as appropriate for your project:
var cytoscape = ;var jquery = ;var graphml = ;; // register extension
Plain HTML/JS has the extension registered for you automatically, because no
require() is needed.
This project is set up to automatically be published to npm and bower. To publish:
- Set the version number environment variable:
- If publishing to bower for the first time, you'll need to run
bower register cytoscape-graphml https://github.com/iVis-at-Bilkent/cytoscape.js-graphml.git