Skip to main content

A library to sample temporal walks from in-memory temporal graphs

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

🚀 Temporal Walk

PyPI Latest Release PyPI Downloads

A high-performance temporal walk sampler for dynamic networks with GPU acceleration. Built for scale.


🔥 Why Temporal Walk?

Performance First – GPU-accelerated sampling for massive networks (development in progress)
Memory Efficient – Smart memory management for large graphs
Flexible Integration – Easy Python bindings with NumPy/NetworkX support
Production Ready – Developed by Packets Research Lab


⚡ Quick Start

from temporal_walk import TemporalWalk

# Create a directed temporal graph
walker = TemporalWalk(is_directed=True, use_gpu=False)

# Add edges: (source, target, timestamp)
edges = [
    (4, 5, 71), (3, 5, 82), (1, 3, 19),
    (4, 2, 34), (4, 3, 79), (2, 5, 19)
]
walker.add_multiple_edges(edges)

# Sample walks with exponential time bias
walks = walker.get_random_walks_for_all_nodes(
    max_walk_len=5,
    walk_bias="ExponentialWeight",
    num_walks_per_node=10,
    initial_edge_bias="Uniform"
)

✨ Key Features

  • GPU acceleration for large graphs (development in progress)
  • 🎯 Multiple sampling strategies – Uniform, Linear, Exponential
  • 🔄 Forward & backward temporal walks
  • 📡 Rolling window support for streaming data
  • 🔗 NetworkX integration
  • 🛠️ Efficient memory management

📦 Installation

pip install temporal-walk

📖 Documentation

📌 C++ Documentation → 📌 Python Interface Documentation →


📚 Inspired By

Nguyen, Giang Hoang, et al.
"Continuous-Time Dynamic Network Embeddings."
Companion Proceedings of The Web Conference 2018.

👨‍🔬 Built by Packets Research Lab

🚀 Contributions welcome! Open a PR or issue if you have suggestions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

temporal_walk-0.5.8-cp312-cp312-macosx_14_0_arm64.whl (279.2 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

temporal_walk-0.5.8-cp311-cp311-macosx_14_0_arm64.whl (280.1 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

temporal_walk-0.5.8-cp310-cp310-macosx_14_0_arm64.whl (279.5 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

temporal_walk-0.5.8-cp38-cp38-macosx_13_0_arm64.whl (279.7 kB view details)

Uploaded CPython 3.8macOS 13.0+ ARM64

File details

Details for the file temporal_walk-0.5.8-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for temporal_walk-0.5.8-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b49158c657730a8469719b54d80be8e324b9c29bb19ac4da3b8d9489bc096c5e
MD5 aef346e015c35c729e5cc918a1a96c44
BLAKE2b-256 1e8f736f8b0b7a9f7c88a9d95d7335118ab69e477cef24db908efbb6d7b0f61b

See more details on using hashes here.

File details

Details for the file temporal_walk-0.5.8-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for temporal_walk-0.5.8-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3ad13a48e7ede7503c35ec796164db0f1d0826c094e8350ff9e460d4f1c2d895
MD5 71ec16bf8e58e8e7c228960690eda323
BLAKE2b-256 c7336f13a7bbd9a9e187e716e2b46f6dabeb918ce0b20c331575fb325bbe5847

See more details on using hashes here.

File details

Details for the file temporal_walk-0.5.8-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for temporal_walk-0.5.8-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2cc3c9b60d7d394e06468e312a6bd5c75e1ea12eb36c50fc381f7ce32e252b96
MD5 f13d319df348e16c2148a96ead22e11a
BLAKE2b-256 b4e6cad67b46201cf9cc2c344b46cf644caa6e9543847a6adde5d6499610c0f4

See more details on using hashes here.

File details

Details for the file temporal_walk-0.5.8-cp38-cp38-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for temporal_walk-0.5.8-cp38-cp38-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1c419a07a24c0683dbef9ab8713df599153322b71805d9c6a21586530a0457bf
MD5 fea27c07a962b924712d1850d4c36e1d
BLAKE2b-256 410f894ec5c7848ce2d3348ba6b25fe10baf324d5659b375a0a664e8fc86eb5c

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