Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_cookie_mapping_test.cc File Reference

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>
Include dependency graph for graph_cookie_mapping_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TEST() [1/7]

◆ TEST() [2/7]

TEST ( CookieMapping  ,
BreadthFirstTreesMapTheirCopies   
)

◆ TEST() [3/7]

◆ TEST() [4/7]

TEST ( CookieMapping  ,
CutNodeFunctionsMapTheirCopies   
)

◆ TEST() [5/7]

TEST ( CookieMapping  ,
DominatorTreeMapsItsNodes   
)

Definition at line 269 of file graph_cookie_mapping_test.cc.

References Aleph::build_dominator_tree(), and NODE_COOKIE.

◆ TEST() [6/7]

◆ TEST() [7/7]