I wish I can make a graph with Obsidian because Graphviz alone (even with VSCode) doesn’t have:
- Linking suggestion
- Auto update links
- A place to provide more details of a node
As a result, I made myself an Obsidian plugin to convert the database from one of its plugin, Breacrumbs, to .dot format.
Demo
Master graph:
A cluster of the master graph:
Features
-
Auto-wrap node labels to prevent text overflowing
-
Detect different node type whether by it being the end node of a particular edge type, or by the index at the beginning of its title
-
Support default node and edge styles
-
Support subgraphs, and styling for each subgraph
-
Support same rank for each subgraph
-
Support cluster for each subgraph
-
Support pairing nodes (nodes that should be a cluster by themselves)
-
Generate a master graph and individual graphs of each cluster (ideal for large graph)
-
Support running multiple commands (useful if you want to generate different layouts to know which one looks nicest, use unflatten to distribute nodes on the same rank of a wide graph to different lines, or overlay legend or watermark)