org-roam / org-roam-ui

A graphical frontend for exploring your org-roam Zettelkasten
GNU General Public License v3.0
1.99k stars 109 forks source link

[ENH] Question about parent/child nodes hierarchy #243

Open deb75 opened 2 years ago

deb75 commented 2 years ago

Hello,

Usually, as far as I understand, each org heading with an id acts as a node whose parent is either the higher level heading, if this one has an id, or the org file itself.

This means that if I have a file like this :

The graph structure will be a star centered on the org file containing the headings heading3-------file--------heading 1
             heading2

I wonder if it is (would be) possible to change this node's hierarchy and to make it appear as a chain : file-------------heading1-----------heading2-------heading3

that is to say, the parent node of one heading is the previous heading with an id and at same level.

This makes sense for example if you build a course on (e.g.) quantum physics : quantum_physics.org

The first level nodes should be chained : quantum_physics.org----introduction-----First p-----Second p-----Third p-----applications

in order to reflect the fact that there is an implicit dependency between headings : you need to understand the first postulate before the second, the second before the third, and all postulates before applications

However, when dealing with applications, you can dive into sensing, communication or computing independently of each subject, so the corresponding nodes should refer the Application node itself and appear as a star centered on applications.

Ideally this should be parameterized at the file level depending on which hierarchy is the most pertinent, as a I tried to demonstrate.

What say you ?

PS : My apologies for my poor understanding in quantum physics, I think you can tackle at least the two first postulates independently, this is just an example.