GraphReveal
Have you ever needed an example of a graph that, e.g., is Hamiltonian, has exactly 8 vertices, and can be drawn on a plane without intersecting edges? Or wondered how many graphs of size 10 are bipartite, have no isolated vertices, and have exactly two components?
This package aims to answer some of your questions. You can search through all graphs with some reasonable order (currently 9 is the maximum) using a very simple DSL (domain-specific language).
Installation
Make sure that you have Python in a sufficiently recent version. To install the package using pip, you can use the following command:
pip install graphreveal
Basic usage
Firstly, you should create the database:
graphreveal create-database
This process should take less than a second and will create a database of graphs with order no greater than 7. To use a larger database, add the --n 8 or --n 9 flag to this command (it should take no more than a couple of minutes).
Some examples
graphreveal search "10 edges, bipartite, no isolated vertices, 2 components"
graphreveal count "5..6 vertices, connected"
graphreveal count "5 vertices, connected, not (eulerian | planar)"
Command search will print a list of graphs in graph6 format.
You can use houseofgraphs.org to visualize them.
Command count will simply output the number of specified graphs.
List of available properties
- [N]
vertices(alternatives:verts,V,nodes) - [N]
edges(alternative:E) - [N]
blocks(alternative:biconnected components) - [N]
components(alternative:C) acyclic(alternative:forest)bipartitecompleteconnectedcubic(alternative:trivalent)eulerian(alternative:euler)hamiltonian(alternative:hamilton)no isolated vertices(alternatives:no isolated v,niv)planarregulartree
As [N], you can use a simple number or range (e.g., 3-4, 3..4, < 5, >= 2).
You can also negate any property using ! or not.
Use | for alternatives (disjunction) and parentheses () for grouping.
Conjunction (, or ;) binds tighter than |.
Release files for graphreveal 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graphreveal-1.3.0.tar.gz | 731.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphreveal-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / graphreveal-1.3.0.tar.gz
| Download URL | graphreveal-1.3.0.tar.gz |
|---|---|
| Size | 731.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a54f8fd96db810d4be8f4d1240dafee5d347f90dc2323b656c3791ad84fa1ecc
|
|
BLAKE2b-256 checksum How to use checksums |
03594f4728d2fea4657cab03831d60f6f447915f14ca814aee04cf40c31dcd40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 31, 2026.
Transparency logRelease files / graphreveal-1.3.0-py3-none-any.whl
| Download URL | graphreveal-1.3.0-py3-none-any.whl |
|---|---|
| Size | 731.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6674ba38084ed6dde4bb452baf0ec962a8af201fe7dc57a08ab3369184cda8ff
|
|
BLAKE2b-256 checksum How to use checksums |
69463022c46c63998ff9494ecf82f95dc3d60eff57f4682910e77a53b83f7a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 31, 2026.
Transparency log