|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The searches, the connectivity and the shortest paths on each kind of graph. More...
#include <gtest/gtest.h>#include <vector>#include <Bellman_Ford.H>#include <Dijkstra.H>#include <Floyd_Warshall.H>#include <Johnson.H>#include <Tarjan.H>#include <kosaraju.H>#include <topological_sort.H>#include <tpl_agraph.H>#include <tpl_components.H>#include <tpl_cut_nodes.H>#include <tpl_find_path.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <tpl_sgraph.H>#include <tpl_test_acyclique.H>#include <tpl_test_cycle.H>#include <tpl_test_path.H>Go to the source code of this file.
Functions | |
| TYPED_TEST_SUITE (UndirectedKinds, Undirected) | |
| TYPED_TEST_SUITE (DirectedKinds, Directed) | |
| TYPED_TEST (UndirectedKinds, CutNodesAndBridges) | |
| TYPED_TEST (UndirectedKinds, TraversalsAndComponents) | |
| TYPED_TEST (UndirectedKinds, PathsAndCycles) | |
| TYPED_TEST (UndirectedKinds, ShortestPaths) | |
| TYPED_TEST (DirectedKinds, StronglyConnectedComponents) | |
| TYPED_TEST (DirectedKinds, TopologicalSort) | |
| TYPED_TEST (DirectedKinds, ShortestPaths) | |
The searches, the connectivity and the shortest paths on each kind of graph.
Most tests of the algorithms build List_Graph or List_Digraph; the order of the arcs of List_SGraph, which keeps them in a tree, made Kruskal give a wrong tree with it. These tests run the same algorithms, on the same graph, with each of the six kinds of graph, and check what they give.
Definition in file graph_kinds_algorithms_test.cc.
| TYPED_TEST | ( | DirectedKinds | , |
| ShortestPaths | |||
| ) |
Definition at line 228 of file graph_kinds_algorithms_test.cc.
References Aleph::find_min_path(), Aleph::Johnson< GT, Distance, Ait, NAit, SA >::get_distance(), Aleph::Floyd_All_Shortest_Paths< GT, Distance, SA >::get_min_path(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TYPED_TEST | ( | DirectedKinds | , |
| StronglyConnectedComponents | |||
| ) |
Definition at line 183 of file graph_kinds_algorithms_test.cc.
References Aleph::between(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::has_cycle(), Aleph::kosaraju_connected_components(), Aleph::DynList< T >::size(), and Aleph::size().
| TYPED_TEST | ( | DirectedKinds | , |
| TopologicalSort | |||
| ) |
| TYPED_TEST | ( | UndirectedKinds | , |
| CutNodesAndBridges | |||
| ) |
Definition at line 119 of file graph_kinds_algorithms_test.cc.
References Aleph::compute_cut_nodes(), Aleph::find_bridges(), Aleph::DynDlist< T >::size(), and Aleph::size().
| TYPED_TEST | ( | UndirectedKinds | , |
| PathsAndCycles | |||
| ) |
Definition at line 147 of file graph_kinds_algorithms_test.cc.
References Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::is_graph_acyclique(), Aleph::Path< GT >::size(), Aleph::test_for_cycle(), and Aleph::test_for_path().
| TYPED_TEST | ( | UndirectedKinds | , |
| ShortestPaths | |||
| ) |
Definition at line 169 of file graph_kinds_algorithms_test.cc.
References Aleph::find_min_path(), and Aleph::Floyd_All_Shortest_Paths< GT, Distance, SA >::get_min_path().
| TYPED_TEST | ( | UndirectedKinds | , |
| TraversalsAndComponents | |||
| ) |
Definition at line 133 of file graph_kinds_algorithms_test.cc.
References Aleph::inconnected_components(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::size().
| TYPED_TEST_SUITE | ( | DirectedKinds | , |
| Directed | |||
| ) |
| TYPED_TEST_SUITE | ( | UndirectedKinds | , |
| Undirected | |||
| ) |