Python example: construct dot markup
Example constructing graphviz markup using python
Builds DOT graph markup for a simple directed chain, joins the lines into one diagram string, and packages it as JSON in a URL hash for DevTools Daily Graphviz. It teaches programmatic Graphviz generation, newline joining, JSON encoding, and URL quoting with urllib.parse.quote().