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.1.tar.gz (13.8 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.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dress_graph-0.3.1.tar.gz
  • Upload date:
  • Size: 13.8 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.1.tar.gz
Algorithm Hash digest
SHA256 038ba1b445d8bda51014ba64932aa419e8736a92d06c113df1e9300c5bafb613
MD5 5e5b766fbe7d9841898e2dd6f2bd8fd5
BLAKE2b-256 4e53567f3041e86b30c59df7c9f7fd9b8e970c2df7f019f1a1b22d7817e7892a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dress_graph-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9823e70087fcf78ae6361d9d106f9799e17384ed953acbc58c0019f6edfd5da6
MD5 36caea30bb642661e65fbd438e03e49c
BLAKE2b-256 5ab8b5a4d71700e202d1257ffc0d680191ab3c0c188fd3bf014f12ac89501260

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