|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The copies that the graph algorithms map to the graph. More...
#include <gtest/gtest.h>#include <vector>#include <Bellman_Ford.H>#include <Dominators.H>#include <Tarjan.H>#include <kosaraju.H>#include <tpl_cut_nodes.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <tpl_spanning_tree.H>Go to the source code of this file.
Functions | |
| TEST (CookieMapping, ComputeCutNodesMapsItsCopies) | |
| TEST (CookieMapping, CutNodeFunctionsMapTheirCopies) | |
| TEST (CookieMapping, BreadthFirstTreesMapTheirCopies) | |
| TEST (CookieMapping, TarjanMapsItsBlocks) | |
| TEST (CookieMapping, KosarajuMapsItsBlocks) | |
| TEST (CookieMapping, BellmanFordMapsItsTree) | |
| TEST (CookieMapping, DominatorTreeMapsItsNodes) | |
The copies that the graph algorithms map to the graph.
map_nodes(p, q) and map_arcs(p, q) compose with the mapping that the cookie of p holds, if it holds one. An algorithm that gives a copy of a part of g mapped to g must then clear the cookies first: those that it used for something else, as the low values of the cut nodes, and those that a former run left, which point to a copy that may be gone. Each test checks that every node and arc of the copy maps to one of g that maps back to it, after a run and after another one, once the first copy is gone.
Definition in file graph_cookie_mapping_test.cc.
| TEST | ( | CookieMapping | , |
| BellmanFordMapsItsTree | |||
| ) |
Definition at line 255 of file graph_cookie_mapping_test.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::build_tree(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | CookieMapping | , |
| BreadthFirstTreesMapTheirCopies | |||
| ) |
Definition at line 195 of file graph_cookie_mapping_test.cc.
References Aleph::find_breadth_first_spanning_tree().
| TEST | ( | CookieMapping | , |
| ComputeCutNodesMapsItsCopies | |||
| ) |
Definition at line 129 of file graph_cookie_mapping_test.cc.
References Aleph::Compute_Cut_Nodes< GT, SA >::compute_blocks(), LocateFunctions< Container, Type >::get_it(), Aleph::Compute_Cut_Nodes< GT, SA >::map_cut_graph(), Aleph::Compute_Cut_Nodes< GT, SA >::map_subgraph(), NODE_COUNTER, nodes, Aleph::Compute_Cut_Nodes< GT, SA >::paint_subgraphs(), and Aleph::DynDlist< T >::size().
| TEST | ( | CookieMapping | , |
| CutNodeFunctionsMapTheirCopies | |||
| ) |
Definition at line 174 of file graph_cookie_mapping_test.cc.
References Aleph::color(), Aleph::compute_cut_nodes(), Aleph::map_cut_graph(), Aleph::map_subgraph(), NODE_COUNTER, and Aleph::paint_subgraphs().
| TEST | ( | CookieMapping | , |
| DominatorTreeMapsItsNodes | |||
| ) |
Definition at line 269 of file graph_cookie_mapping_test.cc.
References Aleph::build_dominator_tree(), and NODE_COOKIE.
| TEST | ( | CookieMapping | , |
| KosarajuMapsItsBlocks | |||
| ) |
Definition at line 231 of file graph_cookie_mapping_test.cc.
References ARC_COOKIE, Aleph::between(), LocateFunctions< Container, Type >::get_it(), Aleph::kosaraju_connected_components(), NODE_COOKIE, and Aleph::DynList< T >::size().
| TEST | ( | CookieMapping | , |
| TarjanMapsItsBlocks | |||
| ) |
Definition at line 213 of file graph_cookie_mapping_test.cc.
References Aleph::between(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), LocateFunctions< Container, Type >::get_it(), and Aleph::DynList< T >::size().