iVis-at-Bilkent / cytoscape.js-expand-collapse

A Cytoscape.js extension to expand/collapse nodes for better management of complexity of compound graphs
MIT License
126 stars 37 forks source link

Default clustering in the demo #104

Open ugurdogrusoz opened 4 years ago

ugurdogrusoz commented 4 years ago

Enhance the demo (choose an appropriate one of the demos) by taking an arbitrary flat graph and generating a hierarchically clustered version, where clusters are represented by compound nodes. This should be useful in providing a default mechanism to handle complexity of large graphs. For clustering, we could try using this algorithm or something similar in Cytoscape.js core. For loading an arbitrary graph we could use the import GraphML facility as in this demo.

ugurdogrusoz commented 4 years ago
ugurdogrusoz commented 4 years ago

1 Those disconnected nodes are gone but I see some flickering on load (when apply Markov on load is checked). Try checking this option, then load circle.graphml in the samples. Note that the graph is first rendered in the middle of the canvas and then rendered again to the lower left and moved to the center with animation.

3 I can still make the depth 0 or negative.

ugurdogrusoz commented 4 years ago

On load, there is still flickering as described in previous comment. Let's leave this for later.