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

Depth-first searches over a path as long as the graph. More...

#include <gtest/gtest.h>
#include <cstddef>
#include <type_traits>
#include <vector>
#include <tpl_graph.H>
#include <Planarity_Test.H>
#include <Tarjan.H>
#include <generate_df_tree.H>
#include <graph_to_tree.H>
#include <kosaraju.H>
#include <topological_sort.H>
#include <tpl_components.H>
#include <tpl_cut_nodes.H>
#include <tpl_find_path.H>
#include <tpl_graph_utils.H>
#include <tpl_bipartite.H>
#include <tpl_spanning_tree.H>
#include <tpl_test_acyclique.H>
#include <tpl_test_connectivity.H>
#include <tpl_test_cycle.H>
#include <tpl_test_path.H>
Include dependency graph for graph_deep_chain_test.cc:

Go to the source code of this file.

Functions

 TEST (DeepChain, TarjanFindsTheComponentsOfAnOpenChain)
 
 TEST (DeepChain, TarjanFindsTheComponentOfAClosedChain)
 
 TEST (DeepChain, CutNodesAndBridgesOfAPathAndOfACycle)
 
 TEST (DeepChain, PaintsAndCopiesTheBlockOfACycle)
 
 TEST (DeepChain, CopiesTheComponentOfAPath)
 
 TEST (DeepChain, FindsAndTestsThePathOfAChain)
 
 TEST (DeepChain, KosarajuAndTopologicalSortOfAChain)
 
 TEST (DeepChain, BuildsTheTreeOfAPath)
 
 TEST (DeepChain, BuildsTheDfLowTreeOfACycle)
 
 TEST (DeepChain, HopcroftKarpFollowsALongAugmentingPath)
 
 TEST (DeepChain, TestsThePlanarityOfACycle)
 
 TEST (DeepChain, TheSearchesTakeAFilterThatCannotBeAssigned)
 

Detailed Description

Depth-first searches over a path as long as the graph.

A depth-first search goes as deep as the longest path that it follows, which in a chain of n nodes is n. The searches that recursed kept a frame of the call stack for each node, so that a chain of some thousands of nodes overflowed a small stack; these tests run them in a thread with a stack of 256 KiB, over chains of 100000 nodes.

Definition in file graph_deep_chain_test.cc.

Function Documentation

◆ TEST() [1/12]

TEST ( DeepChain  ,
BuildsTheDfLowTreeOfACycle   
)

◆ TEST() [2/12]

TEST ( DeepChain  ,
BuildsTheTreeOfAPath   
)

Definition at line 409 of file graph_deep_chain_test.cc.

References Aleph::destroy_tree(), and nodes.

◆ TEST() [3/12]

TEST ( DeepChain  ,
CopiesTheComponentOfAPath   
)

◆ TEST() [4/12]

◆ TEST() [5/12]

◆ TEST() [6/12]

TEST ( DeepChain  ,
HopcroftKarpFollowsALongAugmentingPath   
)

◆ TEST() [7/12]

◆ TEST() [8/12]

◆ TEST() [9/12]

◆ TEST() [10/12]

◆ TEST() [11/12]

TEST ( DeepChain  ,
TestsThePlanarityOfACycle   
)

◆ TEST() [12/12]

TEST ( DeepChain  ,
TheSearchesTakeAFilterThatCannotBeAssigned   
)

Definition at line 667 of file graph_deep_chain_test.cc.