# Using org-roam-graph "arg node"

**URL:** <https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775>\
**Category:** How To\
**Created:** [September 24, 2022, 11:50pm UTC](https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775 "2022-09-24T23:50:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetoonevswr](https://avatars.discourse-cdn.com/v4/letter/o/ce73a5/32.png) [@onetoonevswr](https://org-roam.discourse.group/u/onetoonevswr)\
**Post date:** [September 24, 2022, 11:50pm UTC](https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775/1 "2022-09-24T23:50:03Z")

</div>

Hi, org-roam-graph suggests that the graph can be generated from the present node as the top node, and limited to only certain levels of nodes associated with the node in the opened .org file. I have not been able to figure out how to actually set that option. thanks for any help.

from autoloads.el:

\*(autoload 'org-roam-graph “org-roam-graph” "\*  
_Build and possibly display a graph for NODE._  
_ARG may be any of the following values:_

- 
  - nil show the graph.\*

- 
  - `\[universal-argument]’ show the graph for NODE.\*

- 
  - `\[universal-argument]’ N show the graph for NODE limiting nodes to N steps.\*

_(fn &optional ARG NODE)" t nil)_

- John

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [September 25, 2022, 7:00am UTC](https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775/2 "2022-09-25T07:00:11Z")

</div>

Universal argument is bound to `C-u` by default. So…

- For the second bullet point, do `C-u` first and then call `org-roam-graph` – e.g. `C-u M-x org-roam-graph`
- For the third bullet point `C-u` and press a number (e.g. 2 ) and then call `org-roam-graph` – e.g. `C-u 2 M-x org-roam-graph`

You can use your keybinding instead of `M-x` of course. `C-u` waits for a command.

You can see this in Emacs manual by evaluating the following. The numeric argument is also part of the Emacs tutorial that comes with Emacs (`C-h t`).

```auto
(info "(emacs) Arguments")

```

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [September 25, 2022, 9:03am UTC](https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775/3 "2022-09-25T09:03:05Z")

</div>

In addition… I’d suggest that you use C-h f to inspect the documentation for functions and commandas rather than looking at autoloads.el. This way, you will see “\[universal-argument]” translated into your key binding

---

<div class="post-metadata">

**Author:** ![onetoonevswr](https://avatars.discourse-cdn.com/v4/letter/o/ce73a5/32.png) [@onetoonevswr](https://org-roam.discourse.group/u/onetoonevswr)\
**Post date:** [September 25, 2022, 10:34am UTC](https://org-roam.discourse.group/t/using-org-roam-graph-arg-node/2775/4 "2022-09-25T10:34:37Z")

</div>

Thanks, this is perfect. For all the years I’ve used Emacs, I’ve never taken time to go under the hood. Teach a man to fish…
