iVis-at-Bilkent / cytoscape.js-hyse

Hybrid Spring Embedder
MIT License
1 stars 0 forks source link

Lower repulsion for smaller graphs #26

Closed ugurdogrusoz closed 11 months ago

ugurdogrusoz commented 11 months ago

Currently, repulsion is very strong, resulting in too much separation of nodes, especially in the hierarchy. So, let's check the size of the graph (number of nodes) and if it's not above a certain threshold (400-500?), let's use a much smaller (40% of the default) repulsion force.

hamzaislam101 commented 11 months ago

If the number of nodes in the graph is below 250, the node repulsion forces are reduced to one-tenth(10%) of the default node repulsion value (55000).