Skip to main content

GDynaDist: an embedding-based distance for temporal graphs

Project description

G-DynaDist

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

| Documentation | Paper |

pip install 

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.

V2 release

In this release we improved the user interface (but left the core code untouched) and we introduced a new documentation to ease the use of our package. We invite the user to check it out to find several examples and comments on how to eeasily compute temporal graph distances using our package.

V1 release

DOI

This is the original release of the article, which correasponds to the DOI indicated above. These codes can be used to reproduce the results of the paper. We remark that, while the distance function is called in a different way, the core definition is unchanged from V1 to V2.

ℹ️ Note: In the V1 version, we used greek letters $\tau$ and $\eta$ to indicate the edge weight and the learning rate, respectively. In the V2 version, these have been turned into tau and eta. Especially the use of eta instead of $\eta$ can cause problems when calling the EDRep package, but that is easily fixed by applying by hand the modification just described to the parameters names.

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)

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

gdynadist-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

gdynadist-0.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file gdynadist-0.1.0.tar.gz.

File metadata

  • Download URL: gdynadist-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for gdynadist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7319fd4709631187283ff6dc1b9b5c2916588a30306b8db0133d92c06016283b
MD5 68cf552cdddbc06f5b1e9379f611e94b
BLAKE2b-256 71b2206b2cc0817f32c25dac78c068395d699d73192994faa2a1c6147d03a9e4

See more details on using hashes here.

File details

Details for the file gdynadist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gdynadist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for gdynadist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be1a12d83b757a09d246ee9c4f8add2dac3dd7de8c85f2f16885a3329bab3812
MD5 131614c4407910b55fe400871593c36f
BLAKE2b-256 6af58310da70c30ef23fc61a8f84080206b66a1b980d2e777e285b3c60f1f33e

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