Skip to main content

G-DynaDist

Dall'Amico, Barrat, Cattuto - An embedding-based distance for temporal graphs

| Documentation | Paper |

pip install gdynadist

Summary

These codes implement our definition of distance between temporal graphs as defined in Dall'Amico, Cattuto, Barrat An embedding-based distance for temporal graphs. We consider the problem of comparing pairs of temporal graphs, i.e relational datasets in which the interaction between node pairs $i, j$ are time-stamped.

We define two metrics for matched and unmatched graphs, respectively. We say two graphs are matched if there exists a known bijective relationship between the nodes of the two graphs and they unmatched otherwise. Matched graphs have the same number of nodes and represent different instances of the same graph, while unmatched graphs may have a different number of nodes.

To compute the distance, we first obtain a node embedding of the temporal graphs, and then we compute the distances in the embedded space. The embedding is obtained using the EDRep Python package. The figure below summarizes the pipeline adopted to compute the distance.

Citation

If you make use of these codes, please reference the following articles

@article{dallamico2024embeddingbased,
   title={An embedding-based distance for temporal graphs},
   volume={15},
   ISSN={2041-1723},
   url={http://dx.doi.org/10.1038/s41467-024-54280-4},
   DOI={10.1038/s41467-024-54280-4},
   number={1},
   journal={Nature Communications},
   publisher={Springer Science and Business Media LLC},
   author={Dall’Amico, Lorenzo and Barrat, Alain and Cattuto, Ciro},
   year={2024},
   month=nov }
@article{
dallamico2025learning,
title={Learning distributed representations with efficient SoftMax normalization},
author={Lorenzo Dall'Amico and Enrico Maria Belliardo},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2025},
url={https://openreview.net/forum?id=9M4NKMZOPu},
note={}
}

Author

Lorenzo Dall'Amico - lorenzo.dallamico@isi.it

Licence

This software is released under the GNU AFFERO GENERAL PUBLIC LICENSE (see included file LICENSE)

Metadata

Release files for GDynaDist 0.1.2

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

Source distribution (sdist)

Source distribution for GDynaDist 0.1.2
File Size Uploaded Provenance Actions
gdynadist-0.1.2.tar.gz 43.4 kB Without provenance Details for gdynadist-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for GDynaDist 0.1.2
File Interpreter ABI Platform Actions
gdynadist-0.1.2-py3-none-any.whl Python 3 none any Details for gdynadist-0.1.2-py3-none-any.whl

Total release size: 73.1 kB

Release files / gdynadist-0.1.2.tar.gz

Download URL gdynadist-0.1.2.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17a01c227e7e43d2aa11da07e8abc4b6021d4dd6061c2028e0a2b14c401cea37
BLAKE2b-256 checksum
How to use checksums
8af015fb1366c1d4d4013e20b70ee954ef034239df09fd65d16c3c339b451898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / gdynadist-0.1.2-py3-none-any.whl

Download URL gdynadist-0.1.2-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
743267ed91c70ed9d07ab37644cf962a4ee773257030be5abcea82a325a68544
BLAKE2b-256 checksum
How to use checksums
0e270e3abb201ed4f01312f912f59b66daf0b8d1c8f297c451c32277c913a7bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for GDynaDist 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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