graphlab-fr / cosma

Cosma is a document graph visualization tool. It modelizes interlinked Markdown files and renders them as an interactive network in a web interface.
https://cosma.arthurperret.fr
GNU General Public License v3.0
121 stars 5 forks source link

[Enhancement] Change Focus mode: Displays dedicated graph with only the focused nodes (no repulsion from hidden nodes) #125

Open GuillaumeHM opened 2 months ago

GuillaumeHM commented 2 months ago

Which part of Cosma is your request about?

Describe your request:

Hello, here is my initial request:

Cosma build graphs with nodes having attraction and repulsion. The more linked nodes in a zone, the farther go the unlinked others.

When in Focus mode (tickbox F checked), unwanted nodes simply disappear but the graph don't change. When we move a node, we can see that remaining nodes keep being under the repulsion of the hidden ones. So they don't move to use the freed space.

I would like the whole graph to be regenerated with only the displayed nodes. So graph nodes aren't under the repulsion of the hidden ones. It would be more spaced, making the graph clearer. A good side effect is that with a looot of nodes, processor would need less effort to display a simple graph rather than the whole graph with all nodes. I have around 300 nodes and I start to have some lags when I move a node. I plan to have much much more, so that will be a problem in the future.

This has been synthetized by @infologie as:

You're asking if we can change the way Focus works, so that instead of filtering the existing graph, it displays a dedicated graph with only the focused nodes.

Thank you!