cytoscape / ipycytoscape

A Cytoscape Jupyter widget
https://ipycytoscape.readthedocs.io/en/master/
BSD 3-Clause "New" or "Revised" License
269 stars 62 forks source link

redering a ipycytoscape as a tree #243

Closed joseberlines closed 3 years ago

joseberlines commented 3 years ago

Anyone knowing what is the layout necessary to use in order to get a layout like this: https://stackoverflow.com/questions/66351266/rendering-a-graph-as-a-tree image

What it is necessary to achieve is that parents are higher than children. Thanks

timkpaine commented 3 years ago

You'll want the dagre layout (as i use with d3 in ipydagred3 )

timkpaine commented 3 years ago

you can see a good overview of cytoscape layouts and demos on https://js.cytoscape.org/

timkpaine commented 3 years ago

Example: https://github.com/QuantStack/ipycytoscape/blob/7f240158f6b690c304302e4cbab488c4c9c5159f/examples/DAG%20example.ipynb

joseberlines commented 3 years ago

thanks @timkpaine