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 – Tested with hundreds of extensive unit tests.


⚡ 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="ExponentialIndex",
    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.9-cp312-cp312-macosx_14_0_arm64.whl (280.1 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

temporal_walk-0.5.9-cp311-cp311-macosx_14_0_arm64.whl (280.9 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

temporal_walk-0.5.9-cp310-cp310-macosx_14_0_arm64.whl (280.4 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

temporal_walk-0.5.9-cp38-cp38-macosx_13_0_arm64.whl (280.3 kB view details)

Uploaded CPython 3.8macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for temporal_walk-0.5.9-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 13c3f24250c6f9d2b6b2a585a65011ec54356905ecb3f81ec2de1992814fab12
MD5 92958c335dc8cba3fd2440ebdaf10591
BLAKE2b-256 56591d37dfae03da2e5ceffcaa75f904ce1da910daa034dd7e9a31435263c1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for temporal_walk-0.5.9-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 430788344980719aa933328733247f3ccf1d27d07b275f7a0e242a3d95975b79
MD5 d399e73bf341c212f68b2a764d4ba562
BLAKE2b-256 f1587d73a282e3e743429baf3a9a7bb3b2f44106d30e78f47a39e57a7e04bcf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for temporal_walk-0.5.9-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a2f473d8e4c407d215c360dd5ece02ae5a190ae99f49cfc6ee4ad1ebbc4bfcf5
MD5 b30e00c2d4e1b2de25d072057af1bcca
BLAKE2b-256 0a60606a55c20fe452b01c9b812249c5a9559a195a9ef1d1c593f48bd0cf189c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for temporal_walk-0.5.9-cp38-cp38-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8752120e52f671da0c2f39e328ff3bc736ed91694383c9d75d926357d6b8e9ee
MD5 931f0b95902ec97dc5c683f0f86a27c7
BLAKE2b-256 68372f9e70ae9cf1fcf84fc2da6c4c620ebe19cbb48bc0209c8bb77441c77d46

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