Skip to main content

DRESS: A deterministic, parameter-free framework for canonical graph fingerprinting via continuous structural edge 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.4.0.tar.gz (18.9 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.4.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dress_graph-0.4.0.tar.gz
  • Upload date:
  • Size: 18.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 1e1cecd7a1e4951e974cc80b4eb704d70e42759e9c784297eee431511b966802
MD5 7901a687e53d710320a82e5268e47ebb
BLAKE2b-256 5e404b18b6e9e47d71a8b5814b282d7614fa0890e0fc062a2de6eaae69cac81e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dress_graph-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f71b25f48817dc988b2b70033d3e8cde3f983c69bbfeadcca13d08977d8491e7
MD5 c8fe9d7458df0cf039970f685fad9256
BLAKE2b-256 c36e802893668041a7f3838f4df709ee6d2e8ae88e367c7e8c6ec49ba14d0e1b

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