Skip to content
About
Main content
Model

Graph traversal is exponential in depth

Graph query cost is exponential in depth until it saturates the component. Shallow-from-few is OLTP; everything else is a disguised full scan.

Degree
average edges at a vertex
Hops
hops traversed

Trade-off: Ordering vs. parallelism

How it behaves

One input on the horizontal axis, the others held fixed.

from one endbidirectional
Data table
Vertices touched by depth (average degree 100)
Hops kseriesVertices touched
1from one end100
1.06from one end133
1.13from one end178
1.19from one end237
1.25from one end316
1.31from one end422
1.38from one end562
1.44from one end750
1.5from one end1K
1.56from one end1.33K
1.63from one end1.78K
1.69from one end2.37K
1.75from one end3.16K
1.81from one end4.22K
1.88from one end5.62K
1.94from one end7.5K
2from one end10K
2.06from one end13.3K
2.13from one end17.8K
2.19from one end23.7K
2.25from one end31.6K
2.31from one end42.2K
2.38from one end56.2K
2.44from one end75K
2.5from one end100K
2.56from one end133K
2.63from one end178K
2.69from one end237K
2.75from one end316K
2.81from one end422K
2.88from one end562K
2.94from one end750K
3from one end1M
3.06from one end1.33M
3.13from one end1.78M
3.19from one end2.37M
3.25from one end3.16M
3.31from one end4.22M
3.38from one end5.62M
3.44from one end7.5M
3.5from one end10M
3.56from one end13.3M
3.63from one end17.8M
3.69from one end23.7M
3.75from one end31.6M
3.81from one end42.2M
3.88from one end56.2M
3.94from one end75M
4from one end100M
4.06from one end133M
4.13from one end178M
4.19from one end237M
4.25from one end316M
4.31from one end422M
4.38from one end562M
4.44from one end750M
4.5from one end1B
4.56from one end1.33B
4.63from one end1.78B
4.69from one end2.37B
4.75from one end3.16B
4.81from one end4.22B
4.88from one end5.62B
4.94from one end7.5B
5from one end10B
5.06from one end13.3B
5.13from one end17.8B
5.19from one end23.7B
5.25from one end31.6B
5.31from one end42.2B
5.38from one end56.2B
5.44from one end75B
5.5from one end100B
5.56from one end133B
5.63from one end178B
5.69from one end237B
5.75from one end316B
5.81from one end422B
5.88from one end562B
5.94from one end750B
6from one end1,000B
1bidirectional20
1.06bidirectional23.1
1.13bidirectional26.7
1.19bidirectional30.8
1.25bidirectional35.6
1.31bidirectional41.1
1.38bidirectional47.4
1.44bidirectional54.8
1.5bidirectional63.2
1.56bidirectional73
1.63bidirectional84.3
1.69bidirectional97.4
1.75bidirectional112
1.81bidirectional130
1.88bidirectional150
1.94bidirectional173
2bidirectional200
2.06bidirectional231
2.13bidirectional267
2.19bidirectional308
2.25bidirectional356
2.31bidirectional411
2.38bidirectional474
2.44bidirectional548
2.5bidirectional632
2.56bidirectional730
2.63bidirectional843
2.69bidirectional974
2.75bidirectional1.12K
2.81bidirectional1.3K
2.88bidirectional1.5K
2.94bidirectional1.73K
3bidirectional2K
3.06bidirectional2.31K
3.13bidirectional2.67K
3.19bidirectional3.08K
3.25bidirectional3.56K
3.31bidirectional4.11K
3.38bidirectional4.74K
3.44bidirectional5.48K
3.5bidirectional6.32K
3.56bidirectional7.3K
3.63bidirectional8.43K
3.69bidirectional9.74K
3.75bidirectional11.2K
3.81bidirectional13K
3.88bidirectional15K
3.94bidirectional17.3K
4bidirectional20K
4.06bidirectional23.1K
4.13bidirectional26.7K
4.19bidirectional30.8K
4.25bidirectional35.6K
4.31bidirectional41.1K
4.38bidirectional47.4K
4.44bidirectional54.8K
4.5bidirectional63.2K
4.56bidirectional73K
4.63bidirectional84.3K
4.69bidirectional97.4K
4.75bidirectional112K
4.81bidirectional130K
4.88bidirectional150K
4.94bidirectional173K
5bidirectional200K
5.06bidirectional231K
5.13bidirectional267K
5.19bidirectional308K
5.25bidirectional356K
5.31bidirectional411K
5.38bidirectional474K
5.44bidirectional548K
5.5bidirectional632K
5.56bidirectional730K
5.63bidirectional843K
5.69bidirectional974K
5.75bidirectional1.12M
5.81bidirectional1.3M
5.88bidirectional1.5M
5.94bidirectional1.73M
6bidirectional2M

Worked examples, recomputed

Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.

Where it appears

Each mechanism states it in its own names. The general symbol each name stands for is shown with it.