# Org-roam-graph with org-roam V2

**URL:** <https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420>\
**Category:** Development\
**Created:** [March 30, 2021, 4:38pm UTC](https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420 "2021-03-30T16:38:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![midas](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@midas](https://org-roam.discourse.group/u/midas)\
**Post date:** [March 30, 2021, 4:38pm UTC](https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420/1 "2021-03-30T16:38:32Z")

</div>

With exciting developments in org-roam V2, a question on my mind is the state of Graphing with the new version. I wonder if early-adopters can comment on their experiences with org-roam-server and graphing on V2. Your insights into what works, what doesn’t work, what is the basic config necessary to get it to perform, etc. would be most appreciated.

Org-roam-server and graphing has come up on the thread [announcing org-roam-V2](https://org-roam.discourse.group/t/org-roam-major-redesign/1198). That thread has grown very very long. Below are links to a few of the posts that deal with the topic. I am spinning off the topic with the hope that a more focused thread on graphic can spurn some focused feedback/input from early adopters. Thanks!

> [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/30):
>
> (limitation) Export does not seem to be able to resolve my IDs – and fails to export. I do not know exactly why this is the case – I do not use export, so no issue for me. But this affects Org-roam-server’s preview feature (not the graph rendering itself, which is working for me beautifully)

> [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/58):
>
> > [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/47):
> >
> > How would the re-design affect org-roam-server? Does it mean that the links to headlines would also be displayed in the graph?
> 
> Queries will need to be rewritten to match the new schema. Links to headlines WITH IDS (nodes) can be displayed in the graph.

> [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/61):
>
> Basically everything else will break: org-roam-bibtex, org-roam-server included.

> [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/90):
>
> > [@Org-roam major redesign](https://org-roam.discourse.group/t/org-roam-major-redesign/1198/88):
> >
> > Does this mean that each node/subtree-with-ID will appear as its own node in graph (via org-roam-server)? That would be fantastic!
> 
> Yes, but org-roam-server needs to be updated for the new db schema.

---

<div class="post-metadata">

**Author:** ![jethro](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jethro](https://org-roam.discourse.group/u/jethro)\
**Post date:** [April 1, 2021, 4:08am UTC](https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420/2 "2021-04-01T04:08:10Z")

</div>

> [@midas](#):
>
> I wonder if early-adopters can comment on their experiences with org-roam-server and graphing on V2.

It really just won’t work yet, until `org-roam-server` is updated to support the new DB schema. I’m certain that it’ll be simpler though.

---

<div class="post-metadata">

**Author:** ![midas](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@midas](https://org-roam.discourse.group/u/midas)\
**Post date:** [June 18, 2021, 3:21am UTC](https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420/3 "2021-06-18T03:21:44Z")

</div>

It seems [`org-roam-graph` has been updated for V2](https://github.com/org-roam/org-roam/commit/fb61b5d2676d41728bc756f0f9a06e51d74db082), and that could mean `org-roam-server` [might soon follow](https://github.com/org-roam/org-roam-server/issues/135#issuecomment-843105902). Encouraging news!

---

<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:** [July 3, 2021, 3:11am UTC](https://org-roam.discourse.group/t/org-roam-graph-with-org-roam-v2/1420/4 "2021-07-03T03:11:22Z")

</div>

@jethro, did you mean that graphing won’t work, or just that `org-roam-server` won’t work?

I’m asking because the graphs I see in V2 don’t match my understanding of how the new headline nodes should behave – from the [V2 announcement](https://org-roam.discourse.group/t/org-roam-major-redesign/1198):

> … Nodes also have an implicit hierarchical structure, from the levels in the Org file. …

For example, if I have two org-roam files, [File1.org](http://File1.org):

```auto
:PROPERTIES:
:ID: 20210702T192356.306099
:END:
#+title: File1

* h1.1
* h1.2
  :PROPERTIES:
  :ID: 20210702T192737.308439
  :END:
*** h1.2.1
*** h1.2.2
  :PROPERTIES:
  :ID: 20210702T192756.464588
  :END:

```

and [File2.org](http://File2.org):

```auto
:PROPERTIES:
:ID: 20210702T192839.233331
:END:
#+title: File2

* h2.1
  :PROPERTIES:
  :ID: 20210702T193026.992153
  :END:
  link: [[id:20210702T192756.464588][h1.2.2]]
* h2.2

```

and if I run `M-x org-roam-graph`, the graph I see is:

![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/8ea31f0c60de2af2a15af7d8a8470ab229183de8.png)

But my understanding is that the graph should instead look more like this:

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/8871fe27c8c77d54d4c3a13b1b3db71c3ebc3607.png)

Is V2 graphing just not implemented yet, or does my understanding not match your intentions?
