https://github.com/cytoscape/cytoscape.js-dagre
The Dagre layout for DAGs and trees for Cytoscape.js
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
4 of 16 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
The Dagre layout for DAGs and trees for Cytoscape.js
Basic Info
- Host: GitHub
- Owner: cytoscape
- License: mit
- Language: JavaScript
- Default Branch: master
- Size: 711 KB
Statistics
- Stars: 262
- Watchers: 19
- Forks: 80
- Open Issues: 2
- Releases: 9
Topics
Metadata Files
README.md
cytoscape-dagre
Description
The Dagre layout for DAGs and trees for Cytoscape.js (demo)
The dagre layout organises the graph using a DAG (directed acyclic graph) system, written by Chris Pettitt. It is especially suitable for DAGs and trees. For more information, please refer to Dagre's documentation.
Dependencies
- Cytoscape.js ^3.2.0
- Dagre ^0.8.2
Usage instructions
Download the library:
* via npm: npm install cytoscape-dagre,
* via bower: bower install cytoscape-dagre, or
* via direct download in the repository (probably from a tag).
Import the library as appropriate for your project:
ES import:
```js import cytoscape from 'cytoscape'; import dagre from 'cytoscape-dagre';
cytoscape.use( dagre ); ```
CommonJS require:
```js let cytoscape = require('cytoscape'); let dagre = require('cytoscape-dagre');
cytoscape.use( dagre ); // register extension ```
AMD:
js
require(['cytoscape', 'cytoscape-dagre'], function( cytoscape, dagre ){
dagre( cytoscape ); // 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: 'dagre', ... }).run(), with options:
```js var defaults = { // dagre algo options, uses default value on undefined nodeSep: undefined, // the separation between adjacent nodes in the same rank edgeSep: undefined, // the separation between adjacent edges in the same rank rankSep: undefined, // the separation between each rank in the layout rankDir: undefined, // 'TB' for top to bottom flow, 'LR' for left to right, align: undefined, // alignment for rank nodes. Can be 'UL', 'UR', 'DL', or 'DR', where U = up, D = down, L = left, and R = right acyclicer: undefined, // If set to 'greedy', uses a greedy heuristic for finding a feedback arc set for a graph. // A feedback arc set is a set of edges that can be removed to make a graph acyclic. ranker: undefined, // Type of algorithm to assign a rank to each node in the input graph. Possible values: 'network-simplex', 'tight-tree' or 'longest-path' minLen: function( edge ){ return 1; }, // number of ranks to keep between the source and target of the edge edgeWeight: function( edge ){ return 1; }, // higher weight edges are generally made shorter and straighter than lower weight edges
// general layout options fit: true, // whether to fit to viewport padding: 30, // fit padding spacingFactor: undefined, // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up nodeDimensionsIncludeLabels: false, // whether labels should be included in determining the space used by a node animate: false, // whether to transition the node positions animateFilter: function( node, i ){ return true; }, // whether to animate specific nodes when animation is on; non-animated nodes immediately go to their final positions animationDuration: 500, // duration of animation in ms if enabled animationEasing: undefined, // easing of animation if enabled boundingBox: undefined, // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h } transform: function( node, pos ){ return pos; }, // a function that applies a transform to the final node position ready: function(){}, // on layoutready sort: undefined, // a sorting function to order the nodes and edges; e.g. function(a, b){ return a.data('weight') - b.data('weight') } // because cytoscape dagre creates a directed graph, and directed graphs use the node order as a tie breaker when // defining the topology of a graph, this sort function can help ensure the correct order of the nodes/edges. // this feature is most useful when adding and removing the same nodes and edges multiple times in a graph. stop: function(){} // on layoutstop }; ```
Build targets
npm run test: Run Mocha tests in./testnpm run build: Build./src/**intocytoscape-dagre.jsnpm run watch: Automatically build on changes with live reloading (N.b. you must already have an HTTP server running)npm run dev: Automatically build on changes with live reloading with webpack dev servernpm run lint: Run eslint on the source
N.b. all builds use babel, so modern ES features can be used in the src.
Publishing instructions
This project is set up to automatically be published to npm and bower. To publish:
- Build the extension :
npm run build:release - Commit the build :
git commit -am "Build for release" - Bump the version number and tag:
npm version major|minor|patch - Push to origin:
git push && git push --tags - Publish to npm:
npm publish . - If publishing to bower for the first time, you'll need to run
bower register cytoscape-dagre https://github.com/cytoscape/cytoscape.js-dagre.git - Make a new release for Zenodo.
Owner
- Name: Cytoscape Consortium
- Login: cytoscape
- Kind: organization
- Website: http://www.cytoscape.org/
- Repositories: 153
- Profile: https://github.com/cytoscape
GitHub Events
Total
- Issues event: 2
- Watch event: 19
- Delete event: 8
- Issue comment event: 16
- Pull request event: 13
- Fork event: 1
- Create event: 6
Last Year
- Issues event: 2
- Watch event: 19
- Delete event: 8
- Issue comment event: 16
- Pull request event: 13
- Fork event: 1
- Create event: 6
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Max Franz | m****z@g****m | 51 |
| dependabot[bot] | 4****]@u****m | 10 |
| Manfred Cheung | m****n@u****a | 6 |
| Harry Adel | h****b@g****m | 5 |
| Alexander Li | a****0@g****m | 3 |
| Tyler Reardon | t****n@g****m | 3 |
| YikaJ | 5****9@q****m | 2 |
| ethan-keller | e****r@s****l | 2 |
| Bjørn Fjukstad | b****n@c****o | 1 |
| Jascha Ephraim | j****a@j****m | 1 |
| Joseph Stahl | j****t@o****m | 1 |
| Nathanael Ruf | n****7@p****m | 1 |
| Sam Kortchmar | S****r@b****u | 1 |
| Sam Kortchmar | s****r@b****u | 1 |
| Zachary Blumenfeld | z****f@g****m | 1 |
| cosipov | c****v@i****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 49
- Total pull requests: 102
- Average time to close issues: 2 months
- Average time to close pull requests: 24 days
- Total issue authors: 44
- Total pull request authors: 16
- Average comments per issue: 3.08
- Average comments per pull request: 1.5
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 85
Past Year
- Issues: 1
- Pull requests: 22
- Average time to close issues: N/A
- Average time to close pull requests: 22 days
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.32
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 22
Top Authors
Issue Authors
- tylerecouture (3)
- swarajd (2)
- Mafti (2)
- calebeaires (2)
- knightswatch3 (1)
- Prophet32j (1)
- Kyrio (1)
- ayjayt (1)
- SOSDAN (1)
- danielpes (1)
- feichin-noreja (1)
- josephrocca (1)
- YikaJ (1)
- Jbonavita (1)
- maxkfranz (1)
Pull Request Authors
- dependabot[bot] (85)
- danyelf (2)
- ayjayt (2)
- alessandro308 (1)
- treardon17 (1)
- N8th8n8el (1)
- skortchmark9 (1)
- ethan-keller (1)
- fjukstad (1)
- YikaJ (1)
- bmacphee (1)
- harryadel (1)
- zblumen (1)
- n313893254 (1)
- josephst (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 10
-
Total downloads:
- npm 290,976 last-month
- nuget 2,215 total
- Total docker downloads: 22,290
-
Total dependent packages: 99
(may contain duplicates) -
Total dependent repositories: 693
(may contain duplicates) - Total versions: 93
- Total maintainers: 8
npmjs.org: cytoscape-dagre
The Dagre layout for DAGs and trees for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-dagre
- License: MIT
-
Latest release: 2.5.0
published over 3 years ago
Rankings
Maintainers (5)
bower.io: cytoscape-dagre
The Dagre layout for DAGs and trees for Cytoscape.js
- License: MIT
-
Latest release: v2.5.0
published over 3 years ago
Rankings
npmjs.org: cytoscape-dagre-cluster-fix
The Dagre layout for DAGs and trees for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-dagre
- License: MIT
-
Latest release: 2.2.5
published about 6 years ago
Rankings
Maintainers (1)
repo1.maven.org: org.webjars.bower:cytoscape-dagre
WebJar for cytoscape-dagre
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bower/cytoscape-dagre/
- License: MIT
-
Latest release: 2.2.2
published about 7 years ago
Rankings
nuget.org: cytoscape.dagre
The Dagre layout for DAGs and trees for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-dagre
- License: mit
-
Latest release: 1.3.0
published about 10 years ago
Rankings
Maintainers (1)
repo1.maven.org: org.webjars.bower:github-com-cytoscape-cytoscape-js-dagre
WebJar for cytoscape-dagre
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bower/github-com-cytoscape-cytoscape-js-dagre/
- License: MIT
-
Latest release: 1.3.0
published almost 10 years ago
Rankings
repo1.maven.org: org.webjars.npm:github-com-cytoscape-cytoscape-js-dagre
WebJar for cytoscape-dagre
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/github-com-cytoscape-cytoscape-js-dagre/
- License: MIT
-
Latest release: 2.2.2
published about 7 years ago
Rankings
npmjs.org: cytoscape-dagre-3
The Dagre layout for DAGs and trees for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-dagre
- License: MIT
-
Latest release: 3.0.0
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- cytoscape ^3.2.0
- 1614 dependencies
- @webpack-cli/serve ^0.2.0 development
- babel-core ^6.26.3 development
- babel-loader ^8.1.0 development
- babel-preset-env ^1.7.0 development
- camelcase ^6.0.0 development
- chai 4.2.0 development
- cpy-cli ^3.1.1 development
- cross-env ^7.0.2 development
- eslint ^7.6.0 development
- gh-pages ^3.1.0 development
- mocha 8.1.1 development
- npm-run-all ^4.1.5 development
- rimraf ^3.0.2 development
- update ^0.7.4 development
- updater-license ^1.0.0 development
- webpack ^4.44.1 development
- webpack-cli ^3.3.12 development
- webpack-dev-server ^3.11.0 development
- dagre ^0.8.5