cytoscape
Graph theory (a.k.a. network) library for analysis and visualisation
Last updated 8 years ago by maxkfranz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install cytoscape 
SYNC missed versions from official npm registry.

GitHub repo Ask a question with Phind News and tutorials License npm DOI npm installs Automated tests Extensions Cloudflare

Created at the University of Toronto and published in Oxford Bioinformatics (2016, 2023).
Authored by: Max Franz, Christian Lopes, Dylan Fong, Mike Kucera, ..., Gary Bader

Cytoscape.js

Graph theory (network) library for visualisation and analysis : https://js.cytoscape.org

Description

Cytoscape.js is a fully featured graph theory library. Do you need to model and/or visualise relational data, like biological data or social networks? If so, Cytoscape.js is just what you need.

Cytoscape.js contains a graph theory model and an optional renderer to display interactive graphs. This library was designed to make it as easy as possible for programmers and scientists to use graph theory in their apps, whether it's for server-side analysis in a Node.js app or for a rich user interface.

You can get started with Cytoscape.js with one line:

var cy = cytoscape({ elements: myElements, container: myDiv });

Learn more about the features of Cytoscape.js by reading its documentation.

Example

The Tokyo railway stations network can be visualised with Cytoscape:

A live demo and source code are available for the Tokyo railway stations graph. More demos are available in the documentation.

Documentation

You can find the documentation and downloads on the project website.

Roadmap

Future versions of Cytoscape.js are planned in the milestones of the Github issue tracker. You can use the milestones to see what's currently planned for future releases.

Contributing to Cytoscape.js

Would you like to become a Cytoscape.js contributor? You can contribute in technical roles (e.g. features, testing) or non-technical roles (e.g. documentation, outreach), depending on your interests. Get in touch with us by posting a GitHub discussion.

For the mechanics of contributing a pull request, refer to CONTRIBUTING.md.

Feature releases are made monthly, while patch releases are made weekly. This allows for rapid releases of first- and third-party contributions.

Citation

To cite Cytoscape.js in a paper, please cite the Oxford Bioinformatics issue:

Cytoscape.js: a graph theory library for visualisation and analysis

Franz M, Lopes CT, Huck G, Dong Y, Sumer O, Bader GD

Bioinformatics (2016) 32 (2): 309-311 first published online September 28, 2015 doi:10.1093/bioinformatics/btv557 (PDF)

Build dependencies

Install node and npm. Run npm install before using npm run.

Build instructions

Run npm run <target> in the console. The main targets are:

Building:

  • build: do all builds of the library (umd, min, umd, esm)
  • build:min : do the unminified build with bundled dependencies (for simple html pages, good for novices)
  • build:umd : do the umd (cjs/amd/globals) build
  • build:esm : do the esm (ES 2015 modules) build
  • clean : clean the build directory
  • docs : build the docs into documentation
  • release : build all release artifacts
  • watch : automatically build lib for debugging (with sourcemap, no babel, very quick)
    • good for general testing on debug/index.html
    • served on http://localhost:8080 or the first available port thereafter, with livereload on debug/index.html
  • watch:babel : automatically build lib for debugging (with sourcemap, with babel, a bit slower)
    • good for testing performance or for testing out of date browsers
    • served on http://localhost:8080 or the first available port thereafter, with livereload on debug/index.html
  • watch:umd : automatically build prod umd bundle (no sourcemap, with babel)
    • good for testing cytoscape in another project (with a "cytoscape": "file:./path/to/cytoscape" reference in your project's package.json)
    • no http server
  • dist : update the distribution js for npm etc.

Testing:

The default test scripts run directly against the source code. Tests can alternatively be run on a built bundle. The library can be built on node>=6, but the library's bundle can be tested on node>=0.10.

  • test : run all testing & linting
  • test:js : run the mocha tests on the public API of the lib (directly on source files)
    • npm run test:js -- -g "my test name" runs tests on only the matching test cases
  • test:build : run the mocha tests on the public API of the lib (on a built bundle)
    • npm run build should be run beforehand on a recent version of node
    • npm run test:build -- -g "my test name" runs build tests on only the matching test cases
  • test:modules : run unit tests on private, internal API
    • npm run test:modules -- -g "my test name" runs modules tests on only the matching test cases
  • lint : lint the js sources via eslint
  • benchmark : run all benchmarks
  • benchmark:single : run benchmarks only for the suite specified in benchmark/single

Release instructions

IMP: The releases should be made atleast 5 min apart for the zenodo to pick the new release. IMP: Amend Github Action in all branches for consistent results across branches

Tests

Mocha tests are found in the test directory. The tests can be run in the browser or they can be run via Node.js (npm run test:js).

Current Tags

  • 3.30.2                                ...           latest (3 months ago)

252 Versions

  • 3.30.2                                ...           3 months ago
  • 3.30.1                                ...           4 months ago
  • 3.30.0                                ...           5 months ago
  • 3.29.3                                ...           5 months ago
  • 3.29.2                                ...           7 months ago
  • 3.29.1                                ...           7 months ago
  • 3.29.0                                ...           7 months ago
  • 3.28.1                                ...           a year ago
  • 3.27.2                                ...           a year ago
  • 3.28.0                                ...           a year ago
  • 3.27.1                                ...           a year ago
  • 3.26.2                                ...           a year ago
  • 3.27.0                                ...           a year ago
  • 3.26.1                                ...           a year ago
  • 3.25.2                                ...           a year ago
  • 3.26.0                                ...           a year ago
  • 3.25.1                                ...           a year ago
  • 3.24.2                                ...           a year ago
  • 3.25.0                                ...           a year ago
  • 3.24.1                                ...           a year ago
  • 3.23.1                                ...           a year ago
  • 3.24.0                                ...           2 years ago
  • 3.23.0                                ...           2 years ago
  • 3.22.1                                ...           2 years ago
  • 3.21.3                                ...           2 years ago
  • 3.22.0                                ...           2 years ago
  • 3.21.2                                ...           2 years ago
  • 3.20.3                                ...           2 years ago
  • 3.21.1                                ...           3 years ago
  • 3.20.2                                ...           3 years ago
  • 3.21.0                                ...           3 years ago
  • 3.20.1                                ...           3 years ago
  • 3.20.0                                ...           3 years ago
  • 3.19.1                                ...           3 years ago
  • 3.18.3                                ...           3 years ago
  • 3.19.0                                ...           4 years ago
  • 3.18.2                                ...           4 years ago
  • 3.17.4                                ...           4 years ago
  • 3.18.1                                ...           4 years ago
  • 3.17.3                                ...           4 years ago
  • 3.18.0                                ...           4 years ago
  • 3.17.2                                ...           4 years ago
  • 3.17.1                                ...           4 years ago
  • 3.16.5                                ...           4 years ago
  • 3.17.0                                ...           4 years ago
  • 3.16.4                                ...           4 years ago
  • 3.15.5                                ...           4 years ago
  • 3.16.3                                ...           4 years ago
  • 3.15.4                                ...           4 years ago
  • 3.16.2                                ...           4 years ago
  • 3.16.1                                ...           4 years ago
  • 3.16.0                                ...           4 years ago
  • 3.15.3                                ...           4 years ago
  • 3.15.2                                ...           4 years ago
  • 3.14.4                                ...           4 years ago
  • 3.15.1                                ...           4 years ago
  • 3.14.3                                ...           4 years ago
  • 3.15.0                                ...           5 years ago
  • 3.14.2                                ...           5 years ago
  • 3.13.3                                ...           5 years ago
  • 3.14.1                                ...           5 years ago
  • 3.13.2                                ...           5 years ago
  • 3.14.0                                ...           5 years ago
  • 3.13.1                                ...           5 years ago
  • 3.12.3                                ...           5 years ago
  • 3.13.0                                ...           5 years ago
  • 3.12.2                                ...           5 years ago
  • 3.11.2                                ...           5 years ago
  • 3.12.1                                ...           5 years ago
  • 3.11.1                                ...           5 years ago
  • 3.12.0                                ...           5 years ago
  • 3.11.0                                ...           5 years ago
  • 3.10.2                                ...           5 years ago
  • 3.9.4                                ...           5 years ago
  • 3.9.3                                ...           5 years ago
  • 3.10.1                                ...           5 years ago
  • 3.10.0                                ...           5 years ago
  • 3.9.2                                ...           5 years ago
  • 3.8.5                                ...           5 years ago
  • 3.9.1                                ...           5 years ago
  • 3.8.4                                ...           5 years ago
  • 3.9.0                                ...           5 years ago
  • 3.8.3                                ...           5 years ago
  • 3.7.6                                ...           5 years ago
  • 3.8.2                                ...           5 years ago
  • 3.7.5                                ...           5 years ago
  • 3.8.1                                ...           5 years ago
  • 3.7.4                                ...           5 years ago
  • 3.8.0                                ...           5 years ago
  • 3.7.3                                ...           5 years ago
  • 3.6.6                                ...           5 years ago
  • 3.7.2                                ...           5 years ago
  • 3.6.5                                ...           5 years ago
  • 3.7.1                                ...           5 years ago
  • 3.6.4                                ...           5 years ago
  • 3.7.0                                ...           5 years ago
  • 3.6.3                                ...           5 years ago
  • 3.5.9                                ...           5 years ago
  • 3.6.2                                ...           5 years ago
  • 3.5.8                                ...           5 years ago
  • 3.5.7                                ...           6 years ago
  • 3.4.9                                ...           6 years ago
  • 3.6.1                                ...           6 years ago
  • 3.6.0                                ...           6 years ago
  • 3.5.6                                ...           6 years ago
  • 3.4.8                                ...           6 years ago
  • 3.5.5                                ...           6 years ago
  • 3.4.7                                ...           6 years ago
  • 3.5.4                                ...           6 years ago
  • 3.4.6                                ...           6 years ago
  • 3.5.3                                ...           6 years ago
  • 3.4.5                                ...           6 years ago
  • 3.5.2                                ...           6 years ago
  • 3.5.1                                ...           6 years ago
  • 3.4.4                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.3                                ...           6 years ago
  • 3.3.6                                ...           6 years ago
  • 3.4.2                                ...           6 years ago
  • 3.3.5                                ...           6 years ago
  • 3.4.1                                ...           6 years ago
  • 3.3.4                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.3                                ...           6 years ago
  • 3.3.2                                ...           6 years ago
  • 3.3.1                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.22                                ...           6 years ago
  • 3.2.21                                ...           6 years ago
  • 3.2.20                                ...           6 years ago
  • 3.2.19                                ...           6 years ago
  • 3.2.18                                ...           6 years ago
  • 3.2.17                                ...           6 years ago
  • 3.2.16                                ...           6 years ago
  • 3.2.15                                ...           6 years ago
  • 3.2.14                                ...           6 years ago
  • 3.2.13                                ...           6 years ago
  • 3.2.12                                ...           7 years ago
  • 3.2.11                                ...           7 years ago
  • 2.7.29                                ...           7 years ago
  • 3.2.10                                ...           7 years ago
  • 2.7.28                                ...           7 years ago
  • 3.2.9                                ...           7 years ago
  • 2.7.27                                ...           7 years ago
  • 3.2.8                                ...           7 years ago
  • 3.2.7                                ...           7 years ago
  • 3.2.6                                ...           7 years ago
  • 2.7.26                                ...           7 years ago
  • 3.2.5                                ...           7 years ago
  • 3.2.4                                ...           7 years ago
  • 3.2.3                                ...           7 years ago
  • 2.7.25                                ...           7 years ago
  • 3.2.2                                ...           7 years ago
  • 2.7.24                                ...           7 years ago
  • 3.2.1                                ...           7 years ago
  • 2.7.23                                ...           7 years ago
  • 3.2.0                                ...           7 years ago
  • 3.1.5                                ...           7 years ago
  • 2.7.22                                ...           7 years ago
  • 3.1.4                                ...           7 years ago
  • 3.1.3                                ...           7 years ago
  • 2.7.21                                ...           7 years ago
  • 3.1.2                                ...           7 years ago
  • 2.7.20                                ...           7 years ago
  • 3.1.1                                ...           7 years ago
  • 2.7.19                                ...           7 years ago
  • 3.1.0                                ...           8 years ago
  • 2.7.18                                ...           8 years ago
  • 3.0.1                                ...           8 years ago
  • 3.0.0                                ...           8 years ago
  • 2.7.17                                ...           8 years ago
  • 2.7.16                                ...           8 years ago
  • 2.7.15                                ...           8 years ago
  • 2.7.14                                ...           8 years ago
  • 2.7.13                                ...           8 years ago
  • 2.7.12                                ...           8 years ago
  • 2.7.11                                ...           8 years ago
  • 2.7.10                                ...           8 years ago
  • 2.7.9                                ...           8 years ago
  • 2.7.8                                ...           8 years ago
  • 2.7.7                                ...           8 years ago
  • 2.7.6                                ...           8 years ago
  • 2.7.5                                ...           8 years ago
  • 2.7.4                                ...           8 years ago
  • 2.7.3                                ...           8 years ago
  • 2.7.2                                ...           8 years ago
  • 2.7.1                                ...           8 years ago
  • 2.7.0                                ...           8 years ago
  • 2.6.12                                ...           9 years ago
  • 2.6.11                                ...           9 years ago
  • 2.6.10                                ...           9 years ago
  • 2.6.9                                ...           9 years ago
  • 2.6.8                                ...           9 years ago
  • 2.6.7                                ...           9 years ago
  • 2.6.6                                ...           9 years ago
  • 2.6.5                                ...           9 years ago
  • 2.6.4                                ...           9 years ago
  • 2.6.3                                ...           9 years ago
  • 2.6.2                                ...           9 years ago
  • 2.6.1                                ...           9 years ago
  • 2.6.0                                ...           9 years ago
  • 2.5.5                                ...           9 years ago
  • 2.5.4                                ...           9 years ago
  • 2.5.3                                ...           9 years ago
  • 2.5.2                                ...           9 years ago
  • 2.5.1                                ...           9 years ago
  • 2.5.0                                ...           9 years ago
  • 2.4.9                                ...           9 years ago
  • 2.4.8                                ...           9 years ago
  • 2.4.7                                ...           9 years ago
  • 2.4.6                                ...           9 years ago
  • 2.4.5                                ...           9 years ago
  • 2.4.4                                ...           9 years ago
  • 2.4.3                                ...           9 years ago
  • 2.4.2                                ...           9 years ago
  • 2.4.1                                ...           9 years ago
  • 2.4.0                                ...           10 years ago
  • 2.3.16                                ...           10 years ago
  • 2.3.15                                ...           10 years ago
  • 2.3.14                                ...           10 years ago
  • 2.3.13                                ...           10 years ago
  • 2.3.11                                ...           10 years ago
  • 2.3.10                                ...           10 years ago
  • 2.3.9                                ...           10 years ago
  • 2.3.8                                ...           10 years ago
  • 2.3.7                                ...           10 years ago
  • 2.3.6                                ...           10 years ago
  • 2.3.5                                ...           10 years ago
  • 2.3.4                                ...           10 years ago
  • 2.3.3                                ...           10 years ago
  • 2.3.1                                ...           10 years ago
  • 2.3.0                                ...           10 years ago
  • 2.2.14                                ...           10 years ago
  • 2.2.13                                ...           10 years ago
  • 2.2.12                                ...           10 years ago
  • 2.2.11                                ...           10 years ago
  • 2.2.10                                ...           10 years ago
  • 2.2.9                                ...           10 years ago
  • 2.2.8                                ...           10 years ago
  • 2.2.7                                ...           11 years ago
  • 2.2.6                                ...           11 years ago
  • 2.2.5                                ...           11 years ago
  • 2.2.4                                ...           11 years ago
  • 2.2.3                                ...           11 years ago
  • 2.2.2                                ...           11 years ago
  • 2.2.1                                ...           11 years ago
  • 2.2.0                                ...           11 years ago
  • 2.1.1                                ...           11 years ago
  • 2.1.0                                ...           11 years ago
  • 2.0.0-beta1                                ...           11 years ago
  • 2.0.5                                ...           11 years ago
  • 2.0.3                                ...           11 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (39)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE