Commit d32e3d8
authored
Adding Quickcheck full rary graph (#1468)
* Adding quickcheck for barbell graphs
This QuickCheck test verifies structural properties of barbell_graph.
It ensures the total number of nodes is 2 × mesh_size + path_size.
It checks the number of edges matches the expected sum of two cliques, path edges, and connectors.
* Adding quickcheck for full rary tree
We add quickcheck to test the following properties of a full rary tree graph:
Node count is exactly num_nodes
Edge count is at most num_nodes - 1 (a tree has n-1 edges)
* Adding quickcheck test for full rary tree graph
The quickcheck tests for the following properties:
Node count is exactly num_nodes.
Edge count is at most num_nodes - 1 (a tree has n-1 edges).1 parent af1c75c commit d32e3d8
File tree
2 files changed
+41
-0
lines changed- rustworkx-core/tests/quickcheck
2 files changed
+41
-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 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
0 commit comments