a visualization tool for clingo.
Project description
viASP
viASP generates interactive visualizations of ASP encodings and stable models
viASP allows you to explore the visualization in a variety of ways:
- Follow the derivation of answer sets step-by-step
- Explain the derivation of individual symbols with arrows
- Inspect iterations of recursive rules
- Visualize unsatisfiable programs
- Move rules to follow a preferred order
- Zoom in and out of parts of the graph
Installation
viASP is available as a conda package. You can install it with:
conda install viasp -c potassco -c conda-forge -c stephanzwicknagl
Alternatively, viASP is also available on PyPI. You can install it with pip:
pip install viasp
:memo: | To support the use of clingraph in viASP, install graphviz (version 2.50 or greater) manually. |
---|
Usage
Consider the file hamiltonian.lp
:
node(1..4). start(1).
edge(1,2). edge(2,3). edge(2,4). edge(3,1).
edge(3,4). edge(4,1). edge(4,3).
{ hc(V,U) } :- edge(V,U).
reached(V) :- hc(S,V), start(S).
reached(V) :- reached(U), hc(U,V).
:- node(V), not reached(V).
:- hc(V,U), hc(V,W), U!=W.
:- hc(U,V), hc(W,V), U!=W.
To start a visualization from the command line, run:
viasp hamiltonian.lp
Check out the documentation to see a full description on how to use viASP.
Examples
An introduction to viASP's features is given in the notebook. The examples folder shows a variety of scripts that run viASP.
Contributing
See the documentation page to see how to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file viasp-2.1.2.tar.gz
.
File metadata
- Download URL: viasp-2.1.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72abbbf757283ea682e01a95c92c53fd1a3fdf9a840bc79d6f8e5bf5aa3917b |
|
MD5 | 117b7cee3d0ed0d186a384930b16cb7e |
|
BLAKE2b-256 | 0d551df8720b2a3fa85acce805777b34b44575d55bead2bc02f303e71a115871 |
File details
Details for the file viasp-2.1.2-py3-none-any.whl
.
File metadata
- Download URL: viasp-2.1.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3544ea2a14c5503f8f7a9682cdd05144867a352feb3eaeb49adc7faf08ec8c |
|
MD5 | a9e2107a38ae59cabff401df58206757 |
|
BLAKE2b-256 | 4c9a506130fefb27b5769b2c3afa9438526e239a7dbd48c86efe2f6b389ef3af |