iVis-at-Bilkent / cytoscape.js-hyse

Hybrid Spring Embedder
MIT License
1 stars 0 forks source link

Calculate repulsion forces Graph-by-Graph #4

Closed hamzaislam101 closed 10 months ago

hamzaislam101 commented 1 year ago

Right now the forces are being calculated after all the node pairs are fetched using two loops and then decided if their parents match or not. We want this to be changed to the setting where repulsion forces are calculated in and between nodes of graphs at one level one by one.

hamzaislam101 commented 10 months ago

The repulsion forces in the root graph are calculated within the directed part and between directed nodes and virtual compound nodes. Then using recursion, the repulsion forces are calculated within each graph in those virtual compound nodes.