Function: org-roam-graph
org-roam-graph is an autoloaded, interactive and byte-compiled
function defined in org-roam-graph.el.
Signature
(org-roam-graph &optional ARG NODE)
Documentation
Build and possibly display a graph for NODE.
ARG may be any of the following values:
- nil show the graph.
- C-u (universal-argument) show the graph for NODE.
- C-u (universal-argument) N show the graph for NODE limiting nodes to N steps.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-graph.el
;;; Interactive command
;;;###autoload
(defun org-roam-graph (&optional arg node)
"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."
(interactive
(list current-prefix-arg
(and current-prefix-arg
(org-roam-node-at-point 'assert))))
(let ((graph (cl-typecase arg
(null (org-roam-graph--dot nil 'all-nodes))
(cons (org-roam-graph--dot (org-roam-graph--connected-component
(org-roam-node-id node) 0)))
(integer (org-roam-graph--dot (org-roam-graph--connected-component
(org-roam-node-id node) (abs arg)))))))
(org-roam-graph--build graph #'org-roam-graph--open)))