vefr
Graph algorithms over urd's graphs: color refinement, the k-dimensional
Weisfeiler-Leman algorithm, canonical forms by nauty, and searches, components and shortest paths. vefr has no graph type of its own:
its algorithms take any urd graph (urd::Store<urd::graph<V>, ...>), or a graph of one's own with the same primitives
(urd::graph_like), and a coloring of its vertices that lives outside the graph, as urd keeps vertex data.
#include <urd/repr/graphs/csr_graph.hpp>
#include <vefr/nauty.hpp>
#include <vefr/refinement.hpp>
using Graph = urd::Store<urd::graph<std::uint32_t>, urd::frozen>;
const auto g = Graph(edges.begin(), edges.end());
const auto colors = [&](std::uint32_t v) { return labels[v]; };
const auto [certificate, stable] = vefr::color_refinement(g, colors);
const auto form = vefr::canonical_form(g, colors); // equal exactly for isomorphic graphs
| Header | What |
|---|---|
vefr/graphs.hpp |
graphs by urd's concepts, colorings, vertex positions |
vefr/properties.hpp |
is_loopless, is_multigraph, is_symmetric, is_simple_undirected |
vefr/refinement.hpp |
color_refinement, weisfeiler_leman<K>: certificates that do not depend on the numbering |
vefr/nauty.hpp |
canonical_form (directed graphs and loops too), isomorphism |
vefr/algorithms.hpp |
searches with visitors, topological order, strong components, cycles, shortest paths: written on a graph's ranges, results as Stores keyed by vertex |
pyvefr binds them for a growing Graph and a frozen StaticGraph.
Build
python -m pip install 'pyurd>=0.2.0,<0.3' pybrokkr
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DVEFR_BUILD_TESTS=ON \
-DCMAKE_PREFIX_PATH="$(python -c 'import pyurd, pyurd_native; print(f"{pyurd.native_prefix()};{pyurd_native.native_prefix()}")')"
cmake --build build -j4
ctest --test-dir build --output-on-failure
python -m pip install .[test]
pytest python/tests
The documentation is at https://planning-and-learning.github.io/vefr/ (docs/, built with Sphinx). The shared rules
of the planning-and-learning libraries are in AGENTS.md.
Metadata
Release files for pyvefr 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyvefr-0.2.1.tar.gz | 54.9 kB | With provenance | Details for pyvefr-0.2.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| pyvefr-0.2.1-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 | Details for pyvefr-0.2.1-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
| pyvefr-0.2.1-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 | Details for pyvefr-0.2.1-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
| pyvefr-0.2.1-cp311-abi3-macosx_11_0_x86_64.whl | CPython 3.11 | abi3 | macOS 11.0+ x86-64 | Details for pyvefr-0.2.1-cp311-abi3-macosx_11_0_x86_64.whl |
| pyvefr-0.2.1-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for pyvefr-0.2.1-cp311-abi3-macosx_11_0_arm64.whl |
Total release size: 621.7 kB
Release files / pyvefr-0.2.1.tar.gz
| Download URL | pyvefr-0.2.1.tar.gz |
|---|---|
| Size | 54.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
916991e4c33154ae847182001fbc64f718c3dde188d456577990252ae0d1262a
|
|
BLAKE2b-256 checksum How to use checksums |
b82e3a2097e6c33d9b8c7e86d3330269aadef3c06f325e8d71b784873eaf3364
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logRelease files / pyvefr-0.2.1-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyvefr-0.2.1-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 145.3 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9b3f5bd20dda3e73893509b9423029fa38aca9a2ee687b32f00c1f90d073350f
|
|
BLAKE2b-256 checksum How to use checksums |
01fed8d059c17b9f54d04be256770503c1e49055b91566a5c21f62dfec9b356a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logRelease files / pyvefr-0.2.1-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | pyvefr-0.2.1-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 141.0 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
220777dbe57153ecf593461a436f3e89d4890f59178f94d3f5ad0b6a3738e989
|
|
BLAKE2b-256 checksum How to use checksums |
ef5d3afb2e8c790760d221759a03d5678c0cab9c22c6d2a446cb90c5109bffcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logRelease files / pyvefr-0.2.1-cp311-abi3-macosx_11_0_x86_64.whl
| Download URL | pyvefr-0.2.1-cp311-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 145.7 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
97eea03fb9b20c897b086b8d8ee8d5a611d6f8454c073bec8716f717c976734e
|
|
BLAKE2b-256 checksum How to use checksums |
5de4ebf468509a7efdba4f6a752d15e9059b04201a164db93e743d6c99cae297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logRelease files / pyvefr-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | pyvefr-0.2.1-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 134.8 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0b8ffa48043a33586380c7423ec4f84a7837b370b2a3002a12ec8a1eca7b235d
|
|
BLAKE2b-256 checksum How to use checksums |
4d463f81fe19f3f4ca0d3a64c87395d871b862af66d79a6749d473875bbc439f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logSecurity for pyvefr 0.2.1
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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for pyvefr-0.2.1.tar.gz
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 Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.