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
124 stars 4 forks source link

Control graph population #14

Open KnowledgeGarden opened 2 years ago

KnowledgeGarden commented 2 years ago

Currently, graph population is controlled by selection of node types. Another control might be to place check boxes on each node in the index, and display only those which are selected.

As I build out a graph using a combination of Cosma and Obsidian to add content and links, the graph, one on disease types, gets rather bushy. There are times when I mostly want to explore the neighborhood of a selected disease.

This is, for the most part, a feature request. If it turns out that this feature already exists, then my apologies; I just installed it this morning and do not see any evidence of such an option. System is an M1 MacBook Pro.

infologie commented 2 years ago

This is, for the most part, a feature request.

It is, Cosma does not do this yet. Thanks for the suggestion, I'll add it to the list of ideas we have for future updates.

Right now, we're working on another feature: so far, Cosma can only be used to explore one folder at a time, so the next step is to manage multiple folders, each with its own configuration. Everything else is on the back burner. I'll ping you here if we move forward with your request!

GuillaumeHM commented 2 months ago

Hello,

I'm not sure if my request is linked to this one or not, although it seems. So here it is explained with my words:

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.

What do you think about ?

G.

infologie commented 2 months ago

@GuillaumeHM This is indeed different from what @KnowledgeGarden asked. They asked if we could add individual on/off display toggles for each node. 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. @Myllaume and I thought about this a while ago, there would be significant problems to solve. I encourage you to open another issue for your suggestion, so that we can discuss the details.

GuillaumeHM commented 2 months ago

Thank you for explaining my problem much better :). Here is the new dedicated issue: #125.

KnowledgeGarden commented 2 months ago

I have to thank this group for reminding me of Cosma. I installed it on my Mac in 2022 and applied it to Obsidian. But, other projects pulled me away - today, I happily rebooted it for the first time, and now wish to push further on applying it to other documents. The UX particularly suits my needs. Many thanks.

infologie commented 2 months ago

@KnowledgeGarden That is great to hear! In 2022 I think we were on version 1 of the CLI. The biggest changes since then are:

Check the Changelog for the full details, and the Now/Next page to know what we're currently doing/planning.

Regarding this issue (you suggested individual on/off display toggles for each node), I will highlight another change which may interest you: you can now hide/show nodes based on tags, just like you can do based on types. I'll let you experiment and revisit this issue if you want.