Skip to main content

A tool to detect the backbone in temporal networks

Project description

A tool to detect the backbone in temporal networks

An efficient and fast tool to detect the backbone network in temporal networks. For accurate results, it should be applied to networks with at least 1,000 nodes.

The computational time is O(N_E I_{max}^2), where N_E are the number of unique edges in the network and I_{max} the maximum number of intervals. I_{max} can be computed as T (total time steps) divided by the minimum length of the interval, I_{min}.

For sparse networks (like most of the large networks), the computational time is O(N I_{max}^2)

How to install it

pip install TemporalBackbone

How to run the package

import TemporalBackbone as TB

data = TB.Read_sample()
TB.Temporal_Backbone(data)

Input:

  • pandas dataframe with three columns: node1, node2, time (order is important)
  • I_{min} minimum length of the interval, written in seconds: default 1 day or 60x60x24 seconds (time step is taken from the data)
  • whether the network is directed or not: default True
  • whether to use the Bonferroni correction: default True
  • threshold to determine the significance of a link: default 0.01

Output:

  • list with the significant links

Please cite

The methodology is first introduced in Nadini, M., Bongiorno, C., Rizzo, A., & Porfiri, M. (2020). Detecting network backbones against time variations in node properties. Nonlinear Dynamics, 99(1), 855-878.

Then was deemed as appropriate for large temporal networks, having a good trade-off between false positives and false negatives. See Nadini, M., Rizzo, A., & Porfiri, M. (2020). Reconstructing irreducible links in temporal networks: which tool to choose depends on the network size. Journal of Physics: Complexity, 1(1), 015001.

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

TemporalBackbone-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

TemporalBackbone-0.1.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file TemporalBackbone-0.1.2.tar.gz.

File metadata

  • Download URL: TemporalBackbone-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

File hashes

Hashes for TemporalBackbone-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0a6147b9830c9ba8c2f48410eef3f5461842d3732a34ba551d292828f5d263dd
MD5 90242ba6ae8afcb705b85945d2a1ec84
BLAKE2b-256 e507751c9b920d89e3531e747f836d152a634f9ebb70f53db3f7f5a4718d1470

See more details on using hashes here.

File details

Details for the file TemporalBackbone-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: TemporalBackbone-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

File hashes

Hashes for TemporalBackbone-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c85cd604f29e4be573bf124dcdaf25770d3ea5cf4f0fb261bed1e4637991b301
MD5 debcc8c0d489acc3c27b72e373f0d0a7
BLAKE2b-256 c9eef3c6177983a79bccbb540bcf32592e09f57c12b1ee48c321d1d5080dd0b8

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