Export, print & script a graph¶
From an open graph window:
Save it as a file¶
Export To File (Ctrl+S) writes the graph to disk. Major export formats are PNG and JPG
(raster), SVG, and VSDX (Visio). Additional export formats may also be available depending on
the graph.
Need Mermaid text instead?
Export To File doesn't include Mermaid. For a text-based diagram you can paste into a wiki, README, or pull request, use the Mermaid Graph interactive reports instead.
Copy or print¶
-
Copy Image To Clipboard (
Ctrl+C) — paste the graph straight into a doc or review. -
Print Graph (
Ctrl+P) — send it to a printer. The same shortcut also prints the active file when an editor window is focused instead of a graph.
Reproduce it from the API¶
Copy API command to clipboard generates a Python understand script — an
ent.draw("<graph>", "<file>", "<options>", "<style>")
call — so you can regenerate the graph
headlessly or in a batch. It captures the graph-wide options and style, not per-node tweaks
(showing/hiding an individual node's edges, expanding its children, etc.), so the output matches your
overall configuration rather than reproducing the view node-for-node. See the Python API docs for
draw().
Save node-specific tweaks (built-in graphs)¶
Some built-in graphs let you override options on individual nodes (show/hide a node's edges, expand its children, and so on). Save Graph State stores those node-specific option sets into the project, and Load Graph State reapplies them (also under Graphs → Load Saved Graph…); Restore Defaults clears them. These controls appear only for graphs that have node options.
You rarely need them, though: Understand saves this state automatically — a graph left open when the project closes is restored when you reopen it.
To export a diagram as Mermaid text for a wiki, README, or pull request instead of an image, see Export Mermaid diagrams.