# Application of Graph Theory to Roam link network

**URL:** <https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61>\
**Category:** Graphing Capabilities\
**Created:** [May 5, 2020, 2:16pm UTC](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61 "2020-05-05T14:16:45Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![scotto](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@scotto](https://org-roam.discourse.group/u/scotto)\
**Post date:** [December 4, 2020, 2:13am UTC](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61/21 "2020-12-04T02:13:16Z")

</div>

I’d love to see topic discovery and link suggestion in org-roam; I’ve gotten used to something similar in Evernote, and I know I’ll miss it after I take the final leap.

Also, in case I’m not the only one who wasn’t aware of this, Hugo Cisneros posts his org-roam Notes in a [graph displaying edge cardinality and topic clustering](https://hugocisneros.com/notes/).

---

<div class="post-metadata">

**Author:** ![letmediscussthis](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/letmediscussthis/32/887_2.png) [@letmediscussthis](https://org-roam.discourse.group/u/letmediscussthis)\
**Post date:** [August 7, 2021, 7:21am UTC](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61/22 "2021-08-07T07:21:41Z")

</div>

> [@tecosaur](#):
>
> which means to do this in elisp we’d more or less have to write a network science library

I think with what happened with [GitHub - org-roam/org-roam-server: A Web Application to Visualize the Org-Roam Database](https://github.com/org-roam/org-roam-server), the introduction of [GitHub - org-roam/org-roam-ui: A graphical frontend for exploring your org-roam Zettelkasten](https://github.com/org-roam/org-roam-ui), org-roams built-in graphing abilities and generally users desire for better options in discovering and exploring their ZK, I would think that a standalone library that takes care of a bunch of useful algorithms like this could be justified. In then end the algorithms return org-nodes or their connections, but it would be worth communicating with the above projects what such algorithms can actually give them like the OP started doing, and coming up with a good API that can be used across the libraries. Otherwise people will start implementing a bunch of versions of the same base functionality like search and node/neighborhood discovery with slightly different APIs and possible with incorrect logic.

---

<div class="post-metadata">

**Author:** ![danderzei](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/danderzei/32/59_2.png) [@danderzei](https://org-roam.discourse.group/u/danderzei)\
**Post date:** [August 16, 2021, 1:50am UTC](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61/23 "2021-08-16T01:50:06Z")

</div>

I have done some work analysing my network with the igraph package to analyse my Org-Roam database. [Visualise Org-Roam Networks With igraph and R](https://lucidmanager.org/data-science/visualise-org-roam/)

Igraph has a large collection of algorithms with code in R, Mathematica, Python and C++.

Community detection (specifically the Walktrap or Spinglass methods) seem to work pretty good in knowledge networks.

---

<div class="post-metadata">

**Author:** ![AWY](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@AWY](https://org-roam.discourse.group/u/AWY)\
**Post date:** [August 3, 2022, 10:50pm UTC](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61/24 "2022-08-03T22:50:04Z")

</div>

@tecosaur and @danderzei  
Thank you for this thread. Very interesting discussion. Do you have any updates about this?  
I have two quick questions if you could help me with 🙂

- What’s the possibility of semantic analysis and directions?
- I’m not a math/coding expert, could you help me to understand what is the theory behind linking nodes i.e. #Tags and or [[Links]] in .md files used?

[Previous page](https://org-roam.discourse.group/t/application-of-graph-theory-to-roam-link-network/61.md?page=1)
