|
XNetwork 1.7.5; VERSION ${PROJECT_VERSION}
|
Test case generators for XNetwork algorithms. More...

Go to the source code of this file.
Functions | |
| template<typename Container > | |
| auto | create_test_case1 (const Container &weights) |
| Create a test case with 5 nodes and 5 edges forming a cycle. | |
| template<typename Container > | |
| auto | create_test_case2 (const Container &weights) |
| Create a test case with 3 nodes and bidirectional connections. | |
| template<typename Container > | |
| auto | create_test_case_timing (const Container &weights) |
| Create a timing test case with 3 nodes and bidirectional connections. | |
Test case generators for XNetwork algorithms.
This file contains functions to generate standard test cases for testing graph algorithms.
Create a test case with 5 nodes and 5 edges forming a cycle.
This function creates a directed graph with 5 nodes (A, B, C, D, E) connected in a cycle: A->B->C->D->E->A. Edge weights are assigned from the provided container.
| Container | The type of container for weights (should support iteration) |
| weights | A container of weights for the edges |
Create a test case with 3 nodes and bidirectional connections.
This function creates a directed graph with 3 nodes (A, B, C) where each pair of nodes is connected in both directions.
| Container | The type of container for weights (should support iteration) |
| weights | A container of weights for the edges |
Create a timing test case with 3 nodes and bidirectional connections.
This function creates a directed graph with 3 nodes (A, B, C) intended for timing tests, where each pair of nodes is connected in both directions.
| Container | The type of container for weights (should support iteration) |
| weights | A container of weights for the edges |