graphviz2drawio

Convert graphviz (dot) files to draw.io / lucid (mxGraph) format. Beautiful and editable graphs in your favorite editor.

23 articles 265 View on GitHub ↗
23 articles
How graphviz2drawio Differentiates Between `graph` and `digraph`

Learn how graphviz2drawio distinguishes between DOT graphs and digraphs using pygraphviz's AGraph directed attribute. Ensure correct arrowhead rendering in your conversions.

internals
Mar 3, 2026
Coordinate Translation Logic in Graphviz2Drawio: Converting SVG Offsets to Absolute Positions

Learn how graphviz2drawio translates SVG offsets to Draw.io absolute coordinates using the CoordsTranslate class for precise graph conversions.

internals
Mar 3, 2026
How to Customize the Output Draw.io XML Format in graphviz2drawio

Customize Drawio XML output in graphviz2drawio by editing MxConst.py for tags, Styles.py for visuals, and MxGraph.py for custom attributes. Learn how to tailor your Graphviz exports.

how-to-guide
Mar 3, 2026
How xlabel and label Are Handled Differently for Edges in graphviz2drawio

**In graphviz2drawio, `xlabel` takes precedence over `label` when constructing lookup keys for edge attribute enrichment, while the visual text rendered on edges is extracted independently from SVG `<text>` elements.**

deep-dive
Mar 3, 2026
How to Run Tests for the graphviz2drawio Project

Quickly run tests for the graphviz2drawio project. Execute unit tests with pytest and specification tests with test_specs.sh after installing dependencies.

how-to-guide
Mar 3, 2026
How to Integrate graphviz2drawio into Other Python Projects

**You can integrate graphviz2drawio into Python projects by importing the `convert()` function from `graphviz2drawio.graphviz2drawio`, which accepts DOT files, strings, file objects, or `pygraphviz.AGraph` instances and returns...

Mar 3, 2026
Understanding the Role of the mx Module in the graphviz2drawio Library

Explore the mx module's role in graphviz2drawio. Learn how it serializes Graphviz DOT to drawio XML, translating styles, geometry, and curves for seamless diagram conversion.

internals
Mar 3, 2026
Understanding the Models Directory in graphviz2drawio: SVG-to-Domain Object Conversion

Explore the models directory in graphviz2drawio. Learn how it converts Graphviz SVG to Python objects for draw.io diagram creation and unlocks seamless SVG-to-domain object conversion.

deep-dive
Mar 3, 2026
How Graphviz2Drawio Handles Edge Directions: Directed, Undirected, and Backward Edges

Explore how Graphviz2Drawio manages edge directions, including directed, undirected, and backward edges, to accurately represent your diagrams.

how-to-guide
Mar 3, 2026
How graphviz2drawio Handles Special Graphviz Attributes During SVG-to-Draw.io Conversion

Discover how graphviz2drawio converts Graphviz SVG attributes like colors, opacity, and shapes into drawio styles for seamless diagram integration. Learn the transformation process.

deep-dive
Mar 3, 2026
How Node Styles Are Converted from Graphviz to Draw.io: A Technical Deep Dive

Discover how Graphviz node styles are converted to Draw.io. Learn the technical process of mapping shapes, colors, and line styles from SVG to Draw.io XML using hbmartin/graphviz2drawio.

deep-dive
Mar 3, 2026
How Edge Curves and Bézier Paths Are Generated for Draw.io Diagrams

Learn how graphviz2drawio generates edge curves and bezier paths for Draw.io diagrams by parsing SVG segments and encoding them as mxGraph styles. Convert your Graphviz diagrams seamlessly.

internals
Mar 3, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →