Benchmark

  • On this page, you will find a benchmark of pks on different datasets with various constraints, to give an idea of what to expect in terms of execution time and a better grasp of how to choose the sampling gap.

Datasets

  • For this benchmark, we used the following datasets (we note n the number of nodes and m the number of edges):

Protocol

  • We generate samples of 1000 graphs.

  • The parameter g is set to 2.

  • We follow the convergence using the number of triangles of the graph except for the case of bipartite graphs, where we use the assortativity of the graph.

  • An algorithm adapted from [1] estimates the sampling gap.

  • The datasets are tested with different constraints:

    • Fixed degree sequence : the k-swaps do not affect the degree sequence of the graph.

    • Fixed joint degree matrix : the k-swaps do not affect the joint degree matrix of the graph. Note that it implies that the degree sequence is also fixed.

    • Fixed degree sequence and number of mutual dyads : the k-swaps do not affect the degree sequence of the graph and the number of reciprocal links of the graph (directed graphs only).

Results

dataset

constraint

eta value

eta estimation runtime (in seconds)

convergence runtime (in seconds)

total runtime (in seconds)

karateclub

degree sequence

751

377

2

1575

lesmiserables

degree sequence

1781

1203

5

4955

powergrid

degree sequence

16137

50995

52

233528

yeast

degree sequence

3394

5318

4

25997

airtraffic

degree sequence

6719

9063

19

37817

crime

degree sequence

3869

3026

38

13885

karateclub

joint degree matrix

5053

2 567

8s

4184

lesmiserables

joint degree matrix

24643

15987

43

26398

powergrid

joint degree matrix

197180

1644229

6023

2001551

yeast

degree sequence + dyads

3426

5719

103

27386

airtraffic

degree sequence + dyads

12332

123153

26

610772

References

[1] Dutta, U., Fosdick, B.K., & Clauset, A. (2021). Sampling random graphs with specified degree sequences. arXiv preprint arXiv:2105.12120.