NetworkX-Temporal is a Python package for the creation, manipulation, and analysis of the structure and dynamics of temporal graphs — extending NetworkX with support for time-varying relational data.
Install from PyPI:
pip install networkx-temporal
Software for temporal networks
TemporalGraphclasses that inherit NetworkX static graph classes- Easy slicing of temporal data into snapshots by time, quantile, or rank
- Algorithms for temporal networks, plus static NetworkX algorithms per snapshot
- Community detection: spectral clustering and multislice Leiden optimization
- CPU and GPU (CuPy/RAPIDS) backends, switchable via environment variable
- Dataset loaders and generators, including dynamic stochastic block models
- Conversion between static, snapshot, event, and unrolled representations
- Interoperability with igraph, graph-tool, PyTorch Geometric, DGL, and more
- Open source 3-clause BSD license
- Extensive documentation and examples, plus additional benefits from Python: fast prototyping, cross-platform, and easy to teach and debug