https://github.com/cytoscape/cytoscape.js-springy

The Springy physics simulation layout for Cytoscape.js

https://github.com/cytoscape/cytoscape.js-springy

Science Score: 20.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords

cytoscapejs cytoscapejs-extension

Keywords from Contributors

graph-theory visualisation
Last synced: 11 months ago · JSON representation

Repository

The Springy physics simulation layout for Cytoscape.js

Basic Info
  • Host: GitHub
  • Owner: cytoscape
  • License: mit
  • Language: JavaScript
  • Default Branch: master
  • Size: 25.4 KB
Statistics
  • Stars: 3
  • Watchers: 16
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Topics
cytoscapejs cytoscapejs-extension
Created almost 11 years ago · Last pushed over 8 years ago
Metadata Files
Readme License

README.md

cytoscape-springy

DOI

Description

The Springy physics simulation layout for Cytoscape.js

The springy layout gives relatively slow and poor results compared to other physics simulation layouts. Consider using cose, cose-bilkent, or cola instead.

The springy layout uses a force-directed physics simulation, written by Dennis Hotson. For more information about Springy and its parameters, refer to its documentation.

Dependencies

  • Cytoscape.js ^2.4.0 || ^3.0.0
  • Springy.js ^2.5.0

Usage instructions

Download the library: * via npm: npm install cytoscape-springy, * via bower: bower install cytoscape-springy, or * via direct download in the repository (probably from a tag).

require() the library as appropriate for your project:

CommonJS: ```js var cytoscape = require('cytoscape'); var cyspringy = require('cytoscape-springy');

cyspringy( cytoscape ); // register extension ```

AMD: js require(['cytoscape', 'cytoscape-springy', 'springy'], function( cytoscape, cyspringy, Springy ){ cyspringy( cytoscape, Springy ); // register extension });

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

API

Call the layout, e.g. cy.layout({ name: 'springy', ... }), with options:

```js var defaults = { animate: true, // whether to show the layout as it's running maxSimulationTime: 4000, // max length in ms to run the layout ungrabifyWhileSimulating: false, // so you can't drag nodes during layout fit: true, // whether to fit the viewport to the graph padding: 30, // padding on fit boundingBox: undefined, // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h } randomize: false, // whether to use random initial positions infinite: false, // overrides all other options for a forces-all-the-time mode ready: undefined, // callback on layoutready stop: undefined, // callback on layoutstop

// springy forces and config stiffness: 400, repulsion: 400, damping: 0.5, edgeLength: function( edge ){ var length = edge.data('length');

if( length !== undefined && !isNaN(length) ){
  return length;
}

} }; ```

Publishing instructions

This project is set up to automatically be published to npm and bower. To publish:

  1. Set the version number environment variable: export VERSION=1.2.3
  2. Publish: gulp publish
  3. If publishing to bower for the first time, you'll need to run bower register cytoscape-springy https://github.com/cytoscape/cytoscape.js-springy.git
  4. Make a release on GitHub to automatically register a new Zenodo DOI

Owner

  • Name: Cytoscape Consortium
  • Login: cytoscape
  • Kind: organization

GitHub Events

Total
Last Year

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 28
  • Total Committers: 3
  • Avg Commits per committer: 9.333
  • Development Distribution Score (DDS): 0.286
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Max Franz m****z@g****m 20
Manfred Cheung m****n@u****a 6
Alexander Li a****0@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 3
  • Total pull requests: 1
  • Average time to close issues: 10 days
  • Average time to close pull requests: 5 days
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jclif (1)
  • vincerubinetti (1)
  • annyanich (1)
Pull Request Authors
  • annyanich (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • npm 180 last-month
  • Total docker downloads: 33
  • Total dependent packages: 2
    (may contain duplicates)
  • Total dependent repositories: 5
    (may contain duplicates)
  • Total versions: 18
  • Total maintainers: 5
npmjs.org: cytoscape-springy

The Springy physics simulation layout for Cytoscape.js

  • Versions: 9
  • Dependent Packages: 2
  • Dependent Repositories: 4
  • Downloads: 180 Last month
  • Docker Downloads: 33
Rankings
Downloads: 4.8%
Dependent repos count: 5.9%
Average: 8.3%
Forks count: 8.4%
Dependent packages count: 8.9%
Stargazers count: 13.6%
Last synced: 12 months ago
bower.io: cytoscape-springy

The Springy physics simulation layout for Cytoscape.js

  • License: MIT
  • Latest release: 1.4.2
    published over 8 years ago
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Dependent packages count: 6.0%
Average: 18.9%
Forks count: 19.8%
Dependent repos count: 20.1%
Stargazers count: 29.7%
Last synced: 12 months ago

Dependencies

bower.json bower
  • cytoscape ^2.2.0 || ^3.0.0
  • springy ^2.7.1
package.json npm
  • gulp ^3.8.8 development
  • gulp-jshint ^1.8.5 development
  • gulp-prompt ^0.1.1 development
  • gulp-replace ^0.4.0 development
  • gulp-shell ^0.2.9 development
  • jshint-stylish ^1.0.0 development
  • run-sequence ^1.0.0 development
  • springy ^2.7.1