warrence
3fb3e67e8e
Add GraphTopology::common_neighbors
2026-10-16 20:19:08 +02:00
warrence
3d1e8246a8
Fix clippy findings and related issues
2026-10-13 21:25:50 +02:00
warrence
7cfee9cce5
Remove function calls inside of 'expect'
2026-10-12 21:52:51 +02:00
warrence
3d7dda6f7b
Refactor ElementMap, removing its copy-on-write feature
2026-10-11 22:24:00 +02:00
warrence
4c6a8a43e4
Refactor tests: use MakeTestGraph in model-specific tests, deconstruct vertex arrays where useful, adjust local variable names
2026-09-04 09:28:00 +02:00
warrence
8a1d491943
Format test code
2026-09-03 09:06:22 +02:00
warrence
5825ef3b47
Change all graph tests to pub to avoid unused-warnings
2026-09-02 09:30:37 +02:00
warrence
0ff830ef48
Refactor graph trait tests to minimize macro code, and split into separate files per macro
...
The tests only declare a list of tests in the macro, no longer the test functions themselves. This allows better tooling support (e.g. IDE and rustfmt).
2026-08-31 19:49:42 +02:00
warrence
7fbd5eed9d
Refactor graph creation in all tests into new internal MakeTestGraph trait
...
This large refactor allows future re-use of the existing tests for `FrozenGraph`, which does not implement `GraphTopologyAddition`, but instead has to convert from a different graph which does.
- Fix tests for `GraphTopologyDeletion` hard-coding Graph instead of using the trait.
- Fix some tests silently depending on macro call site uses.
- Change `GraphTopologyAddition` tests to use `Default::default` instead of `new`.
- Add new tests for `GraphTopology::vertex_map` and `edge_map` that also depend on `GraphTopologyAddition`, removing these dependencies from the existing tests.
- Add new test macro `graph_topology_addition_deletion_tests` for tests that need deletion and addition.
2026-08-29 22:38:27 +02:00
warrence
cd1d2cddee
Move related tests into new testing macro for GraphTopologyAddition
2026-08-17 10:19:22 +02:00
warrence
b4374174a9
Add reserve_vertices and reserve_edges to GraphTopologyAddition
2026-08-07 19:01:03 +02:00
warrence
10d0c382cc
Add GraphTopologyAddition trait from GraphTopology
...
Move capacity and add methods from GraphTopology trait to new GraphTopologyAddition trait
2026-08-06 14:17:21 +02:00
warrence
2851cf60fd
Add Incidence struct for GraphTopology to use
2026-08-06 09:57:51 +02:00
warrence
0169343ac8
Merge branch 'main' into release-0.3.0
2026-07-31 10:16:03 +02:00
warrence
c253e4a840
Add tests for GraphTopology::vertex_map and edge_map
2026-07-22 13:31:15 +02:00
warrence
3fa4b66981
Fix IncidenceCursor for AppendGraph and Graph, and add tests
2026-07-17 22:06:28 +02:00
warrence
6d2d1de8ea
Hide testing macros from docs
2026-07-03 22:49:14 +02:00
warrence
e299012948
Move the disconnected test graph to the more general graph_topology_test_fixtures macro
2026-06-25 20:17:55 +02:00
warrence
ce692cb0b2
Add trait imports to test functions, making macros self-contained
2026-05-18 15:55:56 +02:00
warrence
600664acb6
Update tests for Dijkstra's algorithm to test both graph models
...
Use the already established macro pattern, move actual tests to a new file in src/testing.
Use the make_test_graph() function from the graph topology tests instead of duplicating it for the Dijkstra tests.
2026-05-13 14:02:07 +02:00
warrence
f862ac55ec
Add GraphTopology::incident_edges() and tests
2026-05-13 10:59:38 +02:00
warrence
384dca2d20
Fix inconsistent local var name in test function
2026-05-13 10:58:47 +02:00
warrence
6191def324
Fix format
2026-05-13 10:30:36 +02:00
warrence
be63527478
Add incident vertices to edges return value in make_test_graph() fixture
2026-05-12 13:55:04 +02:00
warrence
ac688b4fc0
Extracted some assert code for GraphTopology::incidences into new fn
2026-05-12 13:39:13 +02:00
warrence
f45fc98afc
Add GraphTopology::incident_vertices and tests
2026-05-12 13:37:27 +02:00
warrence
0bcd270d12
Add GraphTopology::incidences(), update and add related tests
2026-05-08 13:12:23 +02:00
warrence
a7be995e34
Change "neighbor" terminology to "adjacent vertex" throughout the code
2026-05-07 17:34:20 +02:00
warrence
6e9867a65e
Add GraphTopology::edges() and tests
2026-05-05 22:54:33 +02:00
warrence
c589095737
Add test for GraphTopology::vertices() after delete
2026-05-05 22:52:07 +02:00
warrence
feaca335b1
Add loops and multi-edges to the test graph, fix neighbors() test
2026-05-05 19:21:48 +02:00
warrence
8324f93ebd
Add graph topology test helper macros to deduplicate test code
2026-04-30 17:41:53 +02:00