Show folders as areas in the graph

Hi,

Here’s my thought process:

Folders serve to encapsulate several notes. Not a single note can be contained in two or more folders. This relation is unique within the graph visualization, one that is yet not being shown to the user. Something like this:

We would have then, that no area can overlap with another making easier to both:

  • Notice the connector hubs (as shown in the picture)
  • Notice areas that encapsulate one or more provincial hubs (as shown in the picture).

Thoughts?

30 Likes

It would tend to clutter the graph, so it should be optional, but yeah, I like that idea.

2 Likes

Love the idea, and have thought about it myself - I use a limited number of folders, but it would be very useful to see notes and groups like this. I have experimented linking every note in a folder to a note named the same as the folder to fake the same clustering effect.

Note (hah, see what I did there) that this doesn’t really scale for tags as they’re not unique to a note. Past three tags it becomes successively more and more difficult to create overlapping areas that make sense (not to mention allow for the effects of linking). See https://en.m.wikipedia.org/wiki/Venn_diagram

This would be really nice. Pair it with this, and you’ll be rolling.

1 Like

I love this idea. And perhaps organization of the note location and folder hierarchy could be done within graph. Graph view containers

Thanks

Related feature requests:

+1

I think this is an interesting idea.

This would be great addition for anyone that has a folder centric workflow - links between folders would be more easily visible

Hi!
I tried to solve the challenge of folder visualization with organic “puddles of water”. Maybe its interesting for you.

I was thinking about the Venn diagram dilemma that would happen when trying to visualize all notes and tags within folders.
The solution could actually be quite simple: You leave the tags outside the folder areas.
This would give them a graphical interface function.

The following rules should suffice to customize the Graph View in this respect:

  • Add a force that attracts notes from the same subfolder
  • Add a force that repels tags from the folder scope
  • Ensure that a subfolder stays within its parent folder scope

I think it would also be possible to achieve a reasonably deterministic arrangement of the nodes with the help of an additional force. (Graph-positional locking - #3 by Mutzu)

  • This force would have to move notes (or tags) with similar words or similar word meanings in the title in a similar direction. This means that a target point or direction would have to be calculated deterministically from the title.

The result might look something like this:

2 Likes

I think this is a brilliant idea.

Genius

Thanks

This plugin GitHub - Ratibus11/folders2graph: Display your Obsidian vault folder structure into your graphs. doesn’t do the puddles/areas, but it does create a node for each folder in the graph, that pulls all the nodes in a folder together, balanced against the other forces/connections on the node. With it active, this is what one of my vaults looks like:

The larger nodes are folders, and I’ve also colour the nodes uniquely to the folders as well - so top right, there’s a folder with a bunch of green nodes in a nice “puddle” that are not connected to anything else (they’re Kindle highlights). Elsewhere in the graph however you can see notes that are in a folder (same colour) but are elsewhere on the graph due to the links in that note (pink and red agains the blue folders/notes are the easiest to see). I still wonder (as in my post above in this thread) if it is actually topologically possible to draw “puddles” around all the notes in a folder, while still taking into account the grouping force of the linkages.

1 Like

Thanks for mentioning the folders2graph plugin.

I think it would be possible to draw these puddles around the notes as they are arranged now.
They would sometimes get a very complex outline and in some places they would overlap.

But if you also wanted to include the tags in the puddles, I think it would become too chaotic.

You could add a slider for an additional force that determines whether you prefer to have the notes closer to the center of a folder or spread them out more freely.

This is the same graph with no tags, and no attachments:

There’s still a few nodes that are a fair way away from their folder nodes, just due to the link connection force - notes that live in one folder, but are heavily connected to nodes in other folders (MOC’s or a widely reference lit source note would be a good example of this kind of thing). If you used an invisible folder node, with a node force that that went to an upper limit swamping all the linking connection forces, they maybe you could get to a point with the layout where you could draw puddles?

Yes, I think so.