medialab / ipysigma

A Jupyter widget using sigma.js to render interactive networks.
https://medialab.github.io/ipysigma/demo.html
MIT License
206 stars 19 forks source link

Spread nodes settings #215

Open oliviercaron opened 1 year ago

oliviercaron commented 1 year ago

Helllo, thank you for this wonderful project.

I have a question about the spread of the nodes in the graph. Is it possible to specify a spacing distance or to start spacing the nodes automatically once the graph is displayed without having to click on the "spread nodes" button?

The "start_layout" property does this for the layout. I was wondering whether there is a "start_spread" property or something like that. Thank you.

Yomguithereal commented 1 year ago

We can certainly add some kwarg analogous to start_layout for the noverlap algorithm indeed yes. We need to find some time to do so though. If you feel confident you can add a PR on this, feel free and we will definitely review it.