GvGen is a Python class designed to generate Graphviz DOT files, which are used to describe graphs. It provides a simple API for creating nodes, defining connections (edges), and applying various Graphviz properties to customize the appearance of the graph. The library simplifies the programmatic creation of complex graph structures, with its current version 1.0 focusing on stable functionality since its release in February 2020.
pip install GvGenVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a simple directed graph with nodes and edges using GvGen, apply basic styling, and then generate a Graphviz DOT file. It also provides instructions for rendering the DOT file into an image using the Graphviz command-line tool.
Install the Graphviz software suite on your operating system (e.g., `sudo apt-get install graphviz` on Debian/Ubuntu, `brew install graphviz` on macOS).
Be aware of the library's maintenance status. For new projects or if encountering issues with newer Python versions, consider using actively maintained alternatives like `pip install graphviz` (the official Graphviz Python binding) which offers similar functionality and active support.