Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.41 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.41 KB

cytoscape-multilevel-layout

Description

A multilevel layout algorithm for visualizing physical and genetic interaction networks based on the publication of Johannes Tuikkala, Heidi Vähämaa, Pekka Salmela, Olli S Nevalainen,and Tero Aittokallio (demo)

Dependencies

  • Cytoscape.js ^3.2.0

Usage instructions

Download the library:

  • via npm: npm install cytoscape-multilevel-layout,
  • via bower: bower install cytoscape-multilevel-layout, or
  • via direct download in the repository (probably from a tag).

Import the library as appropriate for your project:

ES import:

import cytoscape from 'cytoscape';
import multilevelLayout from 'cytoscape-multilevel-layout';

cytoscape.use( multilevelLayout );

CommonJS require:

let cytoscape = require('cytoscape');
let multilevelLayout = require('cytoscape-multilevel-layout');

cytoscape.use( multilevelLayout ); // register extension

AMD:

require(['cytoscape', 'cytoscape-multilevel-layout'], function( cytoscape, multilevelLayout ){
  multilevelLayout( cytoscape ); // register extension
});

Plain HTML/JS has the extension registered for you automatically, because no require() is needed.