Skip to main content

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.3.0,<0.4' 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.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyvefr 0.4.0
File Size Uploaded Provenance Actions
pyvefr-0.4.0.tar.gz 57.3 kB With provenance Details for pyvefr-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyvefr 0.4.0
File Actions
pyvefr-0.4.0-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.4.0-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pyvefr-0.4.0-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.4.0-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
pyvefr-0.4.0-cp311-abi3-macosx_11_0_x86_64.whl CPython 3.11 abi3 macOS 11.0+ x86-64 Details for pyvefr-0.4.0-cp311-abi3-macosx_11_0_x86_64.whl
pyvefr-0.4.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for pyvefr-0.4.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 617.6 kB

Release files / pyvefr-0.4.0.tar.gz

Download URL pyvefr-0.4.0.tar.gz
Size 57.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2c438eb42496430f9a5071a30d89222f75fcf3cfe330a7b60b3fb5b19b76479b
BLAKE2b-256 checksum
How to use checksums
f205f5bff4cf3faa1b409566d7629a76488b71ae89db82db77800cd25839f864
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 18, 2026.

Transparency log

Release files / pyvefr-0.4.0-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL pyvefr-0.4.0-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 143.8 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
d395721461f4df8335398832c4e7a858d0190196ba42a22b7b5ef63da144522d
BLAKE2b-256 checksum
How to use checksums
abb903799a0f8491ec74f33bb7712b0740f7fca4e3b7ea17bad790c88c42c949
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 18, 2026.

Transparency log

Release files / pyvefr-0.4.0-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL pyvefr-0.4.0-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 140.0 kB
Tags CPython 3.11 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
25bdb2e25393c0d46f142abda28ab927ea66048e59c4e8e9724f4aeadfccd74f
BLAKE2b-256 checksum
How to use checksums
1742200fef5eb5ec440b2729cdcaeb059622f2bb71053f5e0d15eecaa2deb1c1
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 18, 2026.

Transparency log

Release files / pyvefr-0.4.0-cp311-abi3-macosx_11_0_x86_64.whl

Download URL pyvefr-0.4.0-cp311-abi3-macosx_11_0_x86_64.whl
Size 143.4 kB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
50879d9a79124fb442dd60fce56c1fa3d739dce2632917582f4e5c437753da6a
BLAKE2b-256 checksum
How to use checksums
21a5320bf7d082bad1327aeff6877c9e988732b2ecbea039e5ebdfd88e4e5da7
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 18, 2026.

Transparency log

Release files / pyvefr-0.4.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyvefr-0.4.0-cp311-abi3-macosx_11_0_arm64.whl
Size 133.1 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2372c624ea6eda081174f58a393e94beec145e4827b8a45bd4f14ce79b88f9c6
BLAKE2b-256 checksum
How to use checksums
03d37bb665f4e31aaf6b67454c01d548038fe37de06736df499500737e2db6d6
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 18, 2026.

Transparency log

Security for pyvefr 0.4.0

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.

Select from 5 files

Attestation for pyvefr-0.4.0.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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page