|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
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>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) | |
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.
| TEST | ( | DeepChain | , |
| BuildsTheDfLowTreeOfACycle | |||
| ) |
Definition at line 430 of file graph_deep_chain_test.cc.
References arcs, Aleph::build_df_low_tree(), Aleph::destroy_tree(), nodes, and root().
| TEST | ( | DeepChain | , |
| BuildsTheTreeOfAPath | |||
| ) |
Definition at line 409 of file graph_deep_chain_test.cc.
References Aleph::destroy_tree(), and nodes.
| TEST | ( | DeepChain | , |
| CopiesTheComponentOfAPath | |||
| ) |
Definition at line 275 of file graph_deep_chain_test.cc.
References Aleph::Unconnected_Components< GT, SA >::count_components(), Aleph::inconnected_components(), nodes, and Aleph::DynList< T >::size().
| TEST | ( | DeepChain | , |
| CutNodesAndBridgesOfAPathAndOfACycle | |||
| ) |
| TEST | ( | DeepChain | , |
| FindsAndTestsThePathOfAChain | |||
| ) |
| TEST | ( | DeepChain | , |
| HopcroftKarpFollowsALongAugmentingPath | |||
| ) |
Definition at line 456 of file graph_deep_chain_test.cc.
References Aleph::hopcroft_karp_matching(), N, and Aleph::DynDlist< T >::size().
| TEST | ( | DeepChain | , |
| KosarajuAndTopologicalSortOfAChain | |||
| ) |
Definition at line 350 of file graph_deep_chain_test.cc.
References arcs, Aleph::DynDlist< T >::get_first(), Aleph::kosaraju_connected_components(), nodes, Aleph::Topological_Sort< GT, Itor, SA >::perform(), Aleph::DynList< T >::size(), and Aleph::DynDlist< T >::size().
| TEST | ( | DeepChain | , |
| PaintsAndCopiesTheBlockOfACycle | |||
| ) |
Definition at line 222 of file graph_deep_chain_test.cc.
References Aleph::all(), Aleph::compute_cut_nodes(), LocateFunctions< Container, Type >::get_it(), Aleph::map_subgraph(), Aleph::Compute_Cut_Nodes< GT, SA >::map_subgraph(), NODE_COUNTER, nodes, Aleph::Compute_Cut_Nodes< GT, SA >::paint_subgraphs(), Aleph::paint_subgraphs(), and Aleph::DynDlist< T >::size().
| TEST | ( | DeepChain | , |
| TarjanFindsTheComponentOfAClosedChain | |||
| ) |
Definition at line 155 of file graph_deep_chain_test.cc.
References Aleph::between(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::DynList< T >::get_first(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::DynList< T >::size(), Aleph::Path< GT >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | DeepChain | , |
| TarjanFindsTheComponentsOfAnOpenChain | |||
| ) |
Definition at line 123 of file graph_deep_chain_test.cc.
References FunctionalMethods< Container, T >::all(), Aleph::between(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::DynList< T >::size().
| TEST | ( | DeepChain | , |
| TestsThePlanarityOfACycle | |||
| ) |
Definition at line 485 of file graph_deep_chain_test.cc.
References Aleph::Planarity_Test_Options::compute_embedding, options, and Aleph::planarity_test().
| TEST | ( | DeepChain | , |
| TheSearchesTakeAFilterThatCannotBeAssigned | |||
| ) |
Definition at line 667 of file graph_deep_chain_test.cc.