Next: , Previous: , Up: Top   [Contents]


12 Graphing

Org-roam provides graphing capabilities to explore interconnections between notes. This is done by performing SQL queries and generating images using Graphviz. The graph can also be navigated: see Roam Protocol.

The entry point to graph creation is org-roam-graph.

Function: org-roam-graph & optional arg file node-query

Build and possibly display a graph for FILE from NODE-QUERY. If FILE is nil, default to current buffer’s file name. ARG may be any of the following values:

User Option: org-roam-graph-executable

Path to the graphing executable (in this case, Graphviz). Set this if Org-roam is unable to find the Graphviz executable on your system.

You may also choose to use neato in place of dot, which generates a more compact graph layout.

User Option: org-roam-graph-viewer

Org-roam defaults to using Firefox (located on PATH) to view the SVG, but you may choose to set it to:

nil uses view-file to view the graph.

If you are using WSL2 and would like to open the graph in Windows, you can use the second option to set the browser and network file path:

(setq org-roam-graph-viewer
    (lambda (file)
      (let ((org-roam-graph-viewer "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"))
        (org-roam-graph--open (concat "file://///wsl$/Ubuntu" file)))))

Next: , Previous: , Up: Top   [Contents]