Skip to main content

DRESS: A Continuous Framework for Structural Graph Refinement

Project description

dress-graph (Python)

A Continuous Framework for Structural Graph Refinement

DRESS is a provably continuous relaxation of the Weisfeiler–Leman algorithm. At depth k, higher-order DRESS is provably at least as powerful as (k+2)-WL in expressiveness — the base algorithm (k=0) already matches 2-WL, and each level adds one WL dimension. Yet it is dramatically cheaper to compute: a single DRESS run costs O(I · m · d_max) where I is the number of iterations, and depth-k requires C(n,k) independent runs — a total of O(C(n,k) · I · m · d_max), compared to O(n^(k+3)) for (k+2)-WL. Space complexity is O(n + m), compared to O(n^(k+2)) for (k+2)-WL. The algorithm is embarrassingly parallel in two orthogonal ways — across the C(n,k) subproblems and across edge updates within each iteration — enabling distributed/cloud and multi-core/GPU/SIMD implementations.

Install

pip install dress-graph

Quick start

from dress import dress_fit

result = dress_fit(
    n_vertices=4,
    sources=[0, 1, 2, 0],
    targets=[1, 2, 3, 3],
)
print(result.edge_dress)  # DRESS value for each edge

For the full API and documentation, see the main repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dress_graph-0.3.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dress_graph-0.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file dress_graph-0.3.0.tar.gz.

File metadata

  • Download URL: dress_graph-0.3.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for dress_graph-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5a3463a42e9eab797f7db6166911273104b054d783a775e92ebfdf49ae6d144d
MD5 4d483298669f98bade245301a2fcdff8
BLAKE2b-256 8723583bd384a8c1959e848153d53ed80c0690d3728e44ed695e49f45eb6a056

See more details on using hashes here.

File details

Details for the file dress_graph-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dress_graph-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for dress_graph-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cce29ef881e8d3387b3e58b731f9373ce56ff3be4af24d08bc759dc50330961
MD5 aec047a075571efc1826ac65e5a3df16
BLAKE2b-256 8081c36a5e57b6b46cbdd1bd23f0e2567a3ea409b65c1ca235ad332bc182f22d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page