iVis-at-Bilkent / cytoscape.js-hyse

Hybrid Spring Embedder
MIT License
1 stars 0 forks source link

Disconnected graph bug #18

Open ugurdogrusoz opened 1 year ago

ugurdogrusoz commented 1 year ago

When the graph is disconnected only in the hierarchical part, there is no issue but when it's disconnected in the undirected part, we get an error in the console. Such disconnected components should be laid out as part of the undirected part with some reasonable initial placement (located towards the lower right, some safe distance from that corner?)

hamzaislam101 commented 1 year ago

The issue that can arise here is that the disconnected graph does not have anything to hold on so it might just move freely around the canvas. I checked and it feels like it's drifting away, but not much to disturb the overall layout.

ugurdogrusoz commented 1 year ago

Let's not worry about this much (components drifting). If there is a need for this, we can always use the component packing utility in this extension.