cytoscape / cytoscape.js-klay

The Klay layout algorithm for Cytoscape.js
MIT License
86 stars 41 forks source link

Order of Nodes #14

Closed keckelt closed 4 years ago

keckelt commented 5 years ago

Hi! Can i influence the order of the nodes?

I made an example on codepen, where I dynamically add nodes to Cytoscape and would like to have the nodes in the same order (or alphabetical by id) as they are in the data array. Right now the node placement seems very random.

Is that possible? The Dagre layout on the right seems to do it that way.

I fiddled with the options listed in the README but without success.

Wkasel commented 5 years ago

any luck on this?

keckelt commented 5 years ago

@Wkasel No, but I didn't look into the code, just the available options.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale, because it has not had activity within the past 30 days. It will be closed if no further activity occurs within the next 30 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.

hackey9 commented 3 years ago

some ideas?

Ciappone commented 1 year ago

Hi, someone got a solution for this?