cytoscape / cytoscape.js-cola

The Cola.js physics simulation layout for Cytoscape.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compound nodes not given in "alignment" config function

pmackay opened this issue · comments

I'm trying to add a constraint that will order some compound nodes, but it looks like the only nodes given to the alignment function are child nodes. Is this expected? Is there any approach to constraining the layout of just compound nodes?

Generally, a layout is going to consider compound nodes as just a criterion to minimise the distance between its descendants --- as to minimise the area used by the compound. It would make more sense to set constraints on the non-parent, descendants instead.

I would expect Cola to behave this way. If you want more details, you should ask the author of Cola. This is just a wrapper lib for Cytoscape.

commented

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.