Zettelkasten Graphs and Usage
My Zettelkasten is full of maps. I use them in various ways. Some of them are part of my Permanent and some are part of my Structure Notes. Today, I tried to bring some order to my visual structures.

Taxonomy Graph
Ontology Graph
Knowledge Graph
Context Graph
Procedural Graph
Do you use any of these visual structures? Or a textual equivalent?
Edmund Gröpl — 100% organic thinking. Less than 5% AI-generated ideas.
Howdy, Stranger!
Categories
- 3K All Categories
- 153 Research & Reading
- 709 The Zettelkasten Method
- 13 Knowledge Work
- 102 Writing
- 475 Software & Gadgets
- 161 Workflows
- 735 The Archive
- 16 Plug-In Showcase
- 89 Resolved Issues
- 225 Projects Logs and Journals
- 86 Project: Zettelkasten.de
- 53 Critique my Zettel
- 183 Random
- 377 Introduce Yourselves!

Comments
These types of graph (or some variant of them) have been important for me at some stage of my work.
You call the knowledge graph "complete, and therefore a haystack", but it could also be a local graph, constructed either automatically or manually. As an Obsidian user, do you ever use a local graph view, limiting the depth of links so that the graph is not of the whole vault, and so not a haystack?
You use a based-on link between these types of graph, but I assume this has a vague meaning, because I don't see how all these types of graphs are all based on another type of graph in exactly the same way.
Thank you for your valuable hints, which I really appreciate. Here is an update:
Edmund Gröpl — 100% organic thinking. Less than 5% AI-generated ideas.
Could you share an example of a note or task where the procedural graph changes what you do next, compared with following a plain checklist?
Here is my example: https://forum.obsidian.md/t/review-and-revise-notes-but-how/86820, created: 2022-03-24, published: 2024-08-03.
To be honest, a plain checklist would achieve the same thing if it is like a software script with loops and decisions, which is essentially a linear list of instructions.
Edmund Gröpl — 100% organic thinking. Less than 5% AI-generated ideas.
It sounds even better if you call it pseudocode. :-) For example:
while thinking: (re)think while visual is not coherent: (re)draw visual while note is not coherent: distill note content connect note to other notes (re)write note print note pin note to wall view on wall wait review get insight 💡With the right tool you can render pseudocode as a Nassi-Shneiderman diagram:
This visualization makes it easier to recognize structures like loops and decisions.
Sequence diagrams and flowcharts with swim lanes add visual context that is difficult to convey with plain text.
Formal visualizations reduce ambiguities because they only have a limited number of well-defined structural elements.
You digging into these quirky dev tools -- I haven't thought of Nassi-Shneiderman diagrams in well over a decade, totally forgot about them. That's super useful for many things, thank you
Author at Zettelkasten.de • https://christiantietze.de/
For me, it was wonderful to be reminded of my old love "swim lanes". Years ago, I had planned of using them for probing the procedures at work in a work analysis, with each unit having its own swim lane. Nice for debottlenecking and such. I will pick it up again. Thank you!
How to zettel for stellar revelations? What a fantastic journey!
Nice to hear that others appreciate those older diagrams too.
I expect them to become more popular because Diagram as Code (DaC) finally makes them usable. I didn't like to edit them with bloated GUI editors. And I'm too lazy to draw them by hand. ;-)
But the software landscape is changing. For example, an increasing number of Markdown editors and renderers support Mermaid out of the box. Obsidian has plugins for GraphViz and plantUML. (And maybe someone will write one for text-generated Nassi-Shneiderman diagrams too.)
It's really easy now to create a chart within a text just by writing text. For example, in Obsidian I only had to type this in a Mermaid code block …
… to get that:
DaC doesn't replace beautiful hand-drawn charts. But they make a great addition.
DaC makes is also much easier to automate chart generation with AI or code. For example, I heard about a plugin that renders Obsidian's database queries as Mermaid chart.
@harr said:
This sounds as if diagram as code is something new, but it been available for a long time in LaTeX, made especially easy and versatile with the release of PGF/TikZ in 2005, not to mention many other LaTeX packages. And given that we've been able to use LaTeX in Pandoc Markdown since 2006, we've been able to write diagrams as code in Markdown for twenty years!
@harr: There are at least two LaTeX packages for writing Nassi-Shneiderman diagrams (which I didn't know until I searched now, as I've never used them): nassflow and struktex.
Thanks for filling gaps in the history! You're correct that the technology has existed for a long time. One might even include statistical software and plotting tools that go back to the 1970s. Early graphics packages for (La)TeX seem to have been available since the 1980s. GraphViz started in the early 1990s. The term "diagram(s) as code" seems to have appeared in 2020.
What's new is the ease of use of the current tools. They allow fast interactive workflows with digital Zettelkastens that haven't been possible before.1
For example, here's a screenshot of Telescopo, a beautiful Markdown viewer/editor:
Mermaid is integrated by default. Nothing to set up.
On the other hand, the effort to configure LaTeX and Pandoc can still make sense for complex documents where every detail matters or where you need specialist typography like in mathematics.
If anyone knows counter-examples, please share! ↩︎
I've had TeX Live installed on my computers for many years, and I forget that most people don't already have a TeX installation. Although not especially fast, LaTeX previews have been possible in digital Zettelkasten work for a long time (I've heard they are also available in Obsidian?) and provide a similar workflow as the Mermaid-based tools you mention. Certainly there are more tools than ever before for diagrams as code, which makes them more accessible.
:-)
Been there, done that. :-) Obsidian supports some MathJax out of the box. The TikZJax Next Plugin works:
Let's say that LaTeX syntax isn't exactly user-friendly. ;-)
@harr said:
This is very true, although types of diagrams for which there are good libraries and packages are friendlier than your Venn diagram example, and I would use Graphviz syntax when relevant, like this diagram from a couple of years ago. (I have used the dot2texi package to embed Graphviz syntax in TikZ.)
Mermaid wins for user-friendliness, TikZ wins for customization potential.
That's where I hit the wall. I didn't get such packages to work. :-(
Yes. In Obsidian Graphviz works nicely with the plugin DOT Diagrams.
Yes. And I also came to appreciate plantUML. Activity diagrams can include swim lanes (see above) and have a nice syntax; and I got hooked on the Regex diagrams, of all things. :-)
By the way, above I said that "we've been able to write diagrams as code in Markdown for twenty years", but I should admit that I haven't really taken advantage of this often; my modus operandi is to put diagram source code, along with rendered diagrams, in separate sidecar files, instead of directly in whatever text I'm working on. (This is still, in a sense, "diagram as code", but perhaps not in a purist sense.) This way I can do an image search on my computer and find the diagrams as images, not just as code.
Good point. I use sidecar files similarly. It just works. :-) I think of diagram as code as an umbrella term that covers all examples you mentioned.
Maybe the question here is a trade-off:
I use Mermaid (and recently also Graphviz and plantUML) for quick iterative visualizations without the technical overhead of managing separate files. And I like how writing code in these languages helps me think through a topic.
But for more complex or more precise charts I'd use other tools. If I were as comfortable with LaTeX as you are, I might use it as well. :-)
I looked it up more thoroughly. The tools have been around for a long time, but the term is new. The earliest references I could find are from 2020:
mingrammer's Python library Diagrams carried the tagline Diagram as Code at least since early 2020: https://web.archive.org/web/20200216051025/https://diagrams.mingrammer.com/ and https://medium.com/better-programming/diagrams-diagram-as-code-56fec222cdf6
thoughtworks' Technology Radar mentioned diagrams as code in the October 2020 blip. This was apparently the publication that introduced the term diagrams as code to a broader audience: https://www.thoughtworks.com/radar/techniques/diagrams-as-code
Simon Brown seems to have popularized the term. For example in the blog posts Diagrams as code (October 2020) and Diagrams as code 2.0 (May 2021).
History is fun. :-)
One of the reasons I'm learning LaTeX now is to have another way to create diagrams. Until now, LibreOffice Draw on Linux was enough, but I'd like to have a more professional option.
On my long-term to-do list is to get back into a scientific programming language. I used R for a bit, but I'd like to try Julia for a while, and one of the things attracting me to these languages is the graphing possibility.
I do look at my knowledge graph in Obsidian sometimes, but mostly out of curiosity.
I'm very fussy about the exact layout of diagrams. Wouldn't it be grand if there were a program like Mermaid, etc., where after the automated layout you could manually tune it up, and the changes would be stored back to the source statements for the diagrams?
draw.io comes pretty close. You can insert a Mermaid diagram as text, ungroup it and then edit the individual parts. The Mermaid code is gone, but you can edit XML code if you like to continue editing text.
I am very familiar with hand-editing XML text but it's not what I like to do. I picture the ideal system as one that provides the fine tuning as a separate layer (or text block) so the original statements persist unchanged. That's important for both human and AI use. The user could adjust the fine tuning in the overlay statements. The system would blend the two layers before painting the diagram.
@tomp, thanks for your question. It led me to wonder whether what you asked is available for TikZ, and indeed there is TikZ Editor, an open-source app built with OpenAI Codex and first released in May 2026. In the Hacker News discussion of it, its developer Dominik Peters, a CS student, noted:
We live in interesting times!
In my previous comment, I mistakenly called the developer of TikZ Editor, Dominik Peters, a "CS student" but should have said "CS researcher", I realized after I looked at his home page.
Very useful software. I was using https://q.uiver.app/, but this tikz.dev is light-years ahead.
Zettel GitHub. Zettel Wiki Erdős #2. Problems worthy of attack prove their worth by hitting back. -- Piet Hein. PROBLEMS. Grooks, 1966. CC BY-SA 4.0.
@Edmund, on the textual equivalent: what I use instead of a local graph view is an outline. Start from one note, list what it links to, then what those link to, two levels deep, indented. It's Andy's depth-limited local graph as text, and it keeps the order the note puts its links in, which a graph view drops. I generate it with iwe, the markdown tool I work on (
iwe retrieve -k <note> -d 2, oriwe treefor titles only; it follows links that sit on their own line, structure-note style). A hand-written structure note gives you the same thing for one area.