clingraph
A declarative visualizer for graphs defined as a set of facts. The graphs are generated using graphviz but are defined via fixed predicates that can be computed from logic programs.
Graph defined by facts
node(clingraph). node(visual). node(asp).
edge((clingraph,visual)). edge((clingraph,asp)).
attr(node,clingraph,style,filled).
Visualization
Clingraph also contains special features for integration with clingo, as well as for generating latex code and gifs!
Check out our paper here. This work was published in LPNMR22 where it received the "Best student paper award".
Usage
Look at our documentation page to see how to use clingraph.
Try clingraph via
command line
or as a package online in a jupyter notebook via
Examples
Our examples folder shows how to use the range of functionalities in different applications.
- Examples used in the documentation (doc)
- Simple (color, cube, lights)
- Clingo integration
(sudoku,
reify,
transition_system)
- Absolute positioning
- Legends
- Latex integration
- Dynamic applications
(asprilo,
elevator,
minotaur)
- Clingo integration
- Multi graphs
- Animation via Gif
- SVG interaction
(family_tree,
queens_interactive,
minesweeper)
- Interaction using SVG
- Visualizing the solving and program structure
Installation
To install the project, run
pip install .
Notice that graphviz needs to be installed on your system. You can find instructions to do so here.
For detailed instructions to install from source and pip see our documentation page.
Release files for clingraph 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clingraph-1.2.4.tar.gz | 2.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clingraph-1.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.7 MB
Release files / clingraph-1.2.4.tar.gz
| Download URL | clingraph-1.2.4.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d53076cd87043e66684b4607c351f7835979b47b9ca6a9f739f8792a756e913b
|
|
BLAKE2b-256 checksum How to use checksums |
36aabf56a77f64861d136644b0abea047a46d84498849c2db36cec642ebeb427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logRelease files / clingraph-1.2.4-py3-none-any.whl
| Download URL | clingraph-1.2.4-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5da4a78595f5f42aac05796ad4ad257e01d57c7c5cb0183c823862a08f12038
|
|
BLAKE2b-256 checksum How to use checksums |
eaf1aa1a87054a3bc03c6c0d18902427dfe28a9594da10ae8d6210cc7443c8e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency log