ivis-at-bilkent / cytoscape.js-cosep Goto Github PK
View Code? Open in Web Editor NEWCompound Spring Embedder with Ports (CoSEP)
License: MIT License
Compound Spring Embedder with Ports (CoSEP)
License: MIT License
Hello,
I was trying to use cosep Layout in a working Cytoscape.js solution (working with ELK, CoSe,...).
But I'm getting the following error:
layout-base.js:3737 Uncaught RangeError: Invalid array length
at CoSEPLayout.FDLayout.calcGrid (layout-base.js:3737)
at CoSEPLayout.FDLayout.updateGrid (layout-base.js:3777)
at CoSEPLayout.FDLayout.calcRepulsionForces (layout-base.js:3493)
at CoSEPLayout.CoSELayout.tick (cose-base.js:1552)
at CoSEPLayout.CoSELayout.runSpringEmbedder (cose-base.js:1589)
at CoSEPLayout.CoSELayout.classicLayout (cose-base.js:1468)
at CoSEPLayout.CoSELayout.layout (cose-base.js:1414)
at CoSEPLayout.Layout.runLayout (layout-base.js:2718)
at a.prerun (cytoscape-cosep.js:1863)
at a.run (cytoscape-cosep.js:2342)
The value of sizeX and sizeY is both -42949672. I've added a check (lesser 0 than 0) but then an error occurs in another place.
What could lead to such an error? Any hints where I can continue to analye what's going wrong?
Best regards!
When there are two or more edges with absolute port constraints in all terminal points between a node pair, only one edge seems to satisfy the constraints after doing a layout.
This problem can be replicated using,
graphandconstraintsForReplicaGraph.zip
The steps to replicate:
After the layout, i.e, e2 isn't drawn with respect to its constraint and when node 4 is dragged, e2s terminal points change location when they shouldn't.
Currently, a single option controls whether or not nodes can be rotated or swapped during layout. However, one might allow rotations but not swaps. Let's separate these as two options.
When the layout is applied with the animation option 'true' (that is, during layout), it doesn't generate correct results. For example, a few nodes are positioned far from the rest of the graph sometimes.
Prepare a README for explaining how to run the evaluation scripts (for measuring performance of CoSEP) and commit all related code, documentation etc. to this repository (a separate branch?)
During the rotation operation, width and height values of a node are swapped here. However, since cose uses left-top point of a node as the node position, only swapping these values doesn't rotate the node around its center. After swapping these values, node position should be set to keep its previous center.
Review the README
Demo improvements:
Merge unstable branch to master
We have Rome benchmark graphs which are simple biconnnected planar graphs but don't have any port information. If we can't find any benchmark graph set with port information, let's think about how to add ports to these graphs.
We also need some random compound graphs. We need to add ports to these as well.
Currently we do have a bunch of SBGN maps with which we can test our algorithm but it'd be great if we had real life data from some other domain as well. Preferably one where the constraint types are different (on all four sides would be great).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.