Efficient Sampling Algorithms for Approximate Motif Counting in Temporal Graph Streams

Jingjing Wang, Yanhao Wang, Wenjun Jiang, Yuchen Li, Kian-Lee Tan
11/22/2022
cs.SIcs.DS

Official code: jingjing-cs/Temporal-Motif-Counting (5 stars, C++, last commit 2021-09-14).

Abstract

A great variety of complex systems, from user interactions in communication networks to transactions in financial markets, can be modeled as temporal graphs consisting of a set of vertices and a series of timestamped and directed edges. Temporal motifs are generalized from subgraph patterns in static graphs which consider edge orderings and durations in addition to topologies.

Show full abstract

Counting the number of occurrences of temporal motifs is a fundamental problem for temporal network analysis. However, existing methods either cannot support temporal motifs or suffer from performance issues. Moreover, they cannot work in the streaming model where edges are observed incrementally over time. In this paper, we focus on approximate temporal motif counting via random sampling. We first propose two sampling algorithms for temporal motif counting in the offline setting. The first is an edge sampling (ES) algorithm for estimating the number of instances of any temporal motif. The second is an improved edge-wedge sampling (EWS) algorithm that hybridizes edge sampling with wedge sampling for counting temporal motifs with $3$ vertices and $3$ edges. Furthermore, we propose two algorithms to count temporal motifs incrementally in temporal graph streams by extending the ES and EWS algorithms referred to as SES and SEWS. We provide comprehensive analyses of the theoretical bounds and complexities of our proposed algorithms. Finally, we perform extensive experimental evaluations of our proposed algorithms on several real-world temporal graphs. The results show that ES and EWS have higher efficiency, better accuracy, and greater scalability than state-of-the-art sampling methods for temporal motif counting in the offline setting. Moreover, SES and SEWS achieve up to three orders of magnitude speedups over ES and EWS while having comparable estimation errors for temporal motif counting in the streaming setting.

View on arXivView PDF

Code Implementations(1)

Codes for paper "Efficient Sampling Algorithms for Approximate Temporal Motif Counting"

50C++, MakefileJul 27, 20205 years ago

Similar Papers

Cite this paper

@article{wang2022efficient,
  title  = {Efficient Sampling Algorithms for Approximate Motif Counting in Temporal Graph Streams},
  author = {Jingjing Wang and Yanhao Wang and Wenjun Jiang and Yuchen Li and Kian-Lee Tan},
  year   = {2022},
  eprint = {2211.12101},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.12101}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.12101.svg)](https://codeofpaper.com/paper/2211.12101)

Discussion