Commit 0311563
authored
Adding Quickcheck for heavy hex graph (#1469)
To ensure the structural properties of heavy hex graph hold, we check that for every odd d < 31,
The total number of nodes equals the theoretical count:
(
5
d
2
−
2
d
−
1
)
/
2
(5d
2
−2d−1)/2
The total number of edges equals:
2
d
(
d
−
1
)
+
(
d
+
1
)
(
d
−
1
)
2d(d−1)+(d+1)(d−1)1 parent d32e3d8 commit 0311563
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
0 commit comments