|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tarjan. More...
#include <algorithm>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <Tarjan.H>Go to the source code of this file.
Classes | |
| struct | SkipWeightZeroArcs |
Typedefs | |
| using | TestDigraph = List_Digraph< Graph_Node< int >, Graph_Arc< int > > |
Functions | |
| TestDigraph::Node * | add_node (TestDigraph &g, int value) |
| TestDigraph::Arc * | add_arc (TestDigraph &g, TestDigraph::Node *src, TestDigraph::Node *tgt, int value=0) |
| TEST (TarjanTest, EmptyGraph) | |
| TEST (TarjanTest, SingleNodeNoLoop) | |
| TEST (TarjanTest, SingleNodeWithLoop) | |
| TEST (TarjanTest, TwoNodesNoCycle) | |
| TEST (TarjanTest, TwoNodesWithCycle) | |
| TEST (TarjanTest, LinearChain) | |
| TEST (TarjanTest, SimpleCycle) | |
| TEST (TarjanTest, MultipleSCCs) | |
| TEST (TarjanTest, ConnectedComponentsWithArcs) | |
| TEST (TarjanTest, ComputeCycleFromSource) | |
| TEST (TarjanTest, ComputeCycleInTestDigraphClass) | |
| TEST (TarjanTest, DiamondDAG) | |
| TEST (TarjanTest, ComplexNestedCycles) | |
| TEST (TarjanTest, DynDlistOverloads) | |
| TEST (TarjanTest, DisconnectedComponents) | |
| TEST (TarjanTest, LargeCycle) | |
| TEST (TarjanTest, SCCTree) | |
| TEST (TarjanTest, NumConnectedComponents) | |
| TEST (TarjanTest, NullSourceValidation) | |
| TEST (TarjanTest, FilterAccessor) | |
| TEST (TarjanTest, StateGetters) | |
| TEST (TarjanTest, MoveSemantics) | |
| TEST (TarjanTest, CustomArcFilter) | |
| TEST (TarjanTest, LargeGraphStress) | |
| TEST (TarjanTest, MultipleDisjointCycles) | |
| TEST (TarjanTest, CyclePathVerification) | |
| TEST (TarjanTest, CompleteDigraph) | |
| TEST (TarjanTest, ReuseInstance) | |
| TEST (TarjanTest, ListsThatHoldBlocksKeepThem) | |
| TEST (TarjanExtended, StarGraphOutward) | |
| TEST (TarjanExtended, StarGraphInward) | |
| TEST (TarjanExtended, WheelGraph) | |
| TEST (TarjanExtended, BinaryTreeDAG) | |
| TEST (TarjanExtended, MultipleSelfLoops) | |
| TEST (TarjanExtended, ChainOfSCCs) | |
| TEST (TarjanExtended, DiamondPatternSCCs) | |
| TEST (TarjanExtended, BipartiteDAG) | |
| TEST (TarjanExtended, StronglyConnectedBipartite) | |
| TEST (TarjanExtended, GridDAG) | |
| TEST (TarjanExtended, GridWithCycles) | |
| TEST (TarjanExtended, DeepLinearChain) | |
| TEST (TarjanExtended, ConsistencyBetweenOverloads) | |
| TEST (TarjanExtended, CycleDetectionConsistency) | |
| TEST (TarjanExtended, LargeSCC) | |
| TEST (TarjanExtended, ManySmallSCCs) | |
| TEST (TarjanExtended, CyclePathDetails) | |
| TEST (TarjanExtended, EmptyGraphEdgeCases) | |
| TEST (TarjanExtended, ParallelArcs) | |
| TEST (TarjanExtended, TournamentGraph) | |
| TEST (TarjanExtended, DenseGraph) | |
| TEST (TarjanExtended, ComputeCycleNoCycle) | |
| TEST (TarjanTest, KeepsNoFrameAfterAnOperation) | |
Tests for Tarjan.
Definition in file tarjan_test.cc.
| using TestDigraph = List_Digraph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 48 of file tarjan_test.cc.
| TestDigraph::Arc * add_arc | ( | TestDigraph & | g, |
| TestDigraph::Node * | src, | ||
| TestDigraph::Node * | tgt, | ||
| int | value = 0 |
||
| ) |
Definition at line 56 of file tarjan_test.cc.
References value.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TestDigraph::Node * add_node | ( | TestDigraph & | g, |
| int | value | ||
| ) |
Definition at line 51 of file tarjan_test.cc.
References value.
Referenced by Aleph::planarity_detail::collect_certificate_nodes(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TEST | ( | TarjanExtended | , |
| BinaryTreeDAG | |||
| ) |
| TEST | ( | TarjanExtended | , |
| BipartiteDAG | |||
| ) |
| TEST | ( | TarjanExtended | , |
| ChainOfSCCs | |||
| ) |
Definition at line 1158 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| ComputeCycleNoCycle | |||
| ) |
Definition at line 1696 of file tarjan_test.cc.
References add_arc(), and add_node().
| TEST | ( | TarjanExtended | , |
| ConsistencyBetweenOverloads | |||
| ) |
Definition at line 1400 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), and Aleph::DynList< T >::size().
| TEST | ( | TarjanExtended | , |
| CycleDetectionConsistency | |||
| ) |
| TEST | ( | TarjanExtended | , |
| CyclePathDetails | |||
| ) |
Definition at line 1551 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), and Aleph::Const_Iterator< It >::has_curr().
| TEST | ( | TarjanExtended | , |
| DeepLinearChain | |||
| ) |
| TEST | ( | TarjanExtended | , |
| DenseGraph | |||
| ) |
Definition at line 1668 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), N, and nodes.
| TEST | ( | TarjanExtended | , |
| DiamondPatternSCCs | |||
| ) |
Definition at line 1198 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), l1, l2, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| EmptyGraphEdgeCases | |||
| ) |
Definition at line 1584 of file tarjan_test.cc.
References Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::HTList::is_empty(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| GridDAG | |||
| ) |
| TEST | ( | TarjanExtended | , |
| GridWithCycles | |||
| ) |
Definition at line 1338 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), r, and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| LargeSCC | |||
| ) |
Definition at line 1490 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::DynList< T >::get_first(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), N, nodes, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), Aleph::DynList< T >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| ManySmallSCCs | |||
| ) |
Definition at line 1524 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanExtended | , |
| MultipleSelfLoops | |||
| ) |
Definition at line 1135 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), N, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| ParallelArcs | |||
| ) |
Definition at line 1607 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanExtended | , |
| StarGraphInward | |||
| ) |
| TEST | ( | TarjanExtended | , |
| StarGraphOutward | |||
| ) |
Definition at line 1023 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), N, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| StronglyConnectedBipartite | |||
| ) |
Definition at line 1272 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanExtended | , |
| TournamentGraph | |||
| ) |
Definition at line 1636 of file tarjan_test.cc.
References add_arc(), add_node(), N, nodes, and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanExtended | , |
| WheelGraph | |||
| ) |
Definition at line 1069 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), N, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| CompleteDigraph | |||
| ) |
Definition at line 900 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), N, nodes, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| ComplexNestedCycles | |||
| ) |
Definition at line 463 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| ComputeCycleFromSource | |||
| ) |
Definition at line 382 of file tarjan_test.cc.
References add_arc(), add_node(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle().
| TEST | ( | TarjanTest | , |
| ComputeCycleInTestDigraphClass | |||
| ) |
Definition at line 408 of file tarjan_test.cc.
References add_arc(), add_node(), and Aleph::Path< GT >::is_empty().
| TEST | ( | TarjanTest | , |
| ConnectedComponentsWithArcs | |||
| ) |
Definition at line 334 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), and Aleph::DynList< T >::size().
| TEST | ( | TarjanTest | , |
| CustomArcFilter | |||
| ) |
Definition at line 777 of file tarjan_test.cc.
References add_arc(), add_node(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanTest | , |
| CyclePathVerification | |||
| ) |
| TEST | ( | TarjanTest | , |
| DiamondDAG | |||
| ) |
Definition at line 437 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| DisconnectedComponents | |||
| ) |
Definition at line 527 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::DynList< T >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| DynDlistOverloads | |||
| ) |
Definition at line 500 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::DynDlist< T >::get_first(), Aleph::Dlink::is_empty(), and Aleph::DynDlist< T >::size().
| TEST | ( | TarjanTest | , |
| EmptyGraph | |||
| ) |
Definition at line 65 of file tarjan_test.cc.
References Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::HTList::is_empty(), Aleph::Path< GT >::is_empty(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| FilterAccessor | |||
| ) |
Definition at line 705 of file tarjan_test.cc.
References Aleph::filter(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::get_filter().
| TEST | ( | TarjanTest | , |
| KeepsNoFrameAfterAnOperation | |||
| ) |
Definition at line 1742 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), nodes, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), Aleph::Path< GT >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| LargeCycle | |||
| ) |
Definition at line 580 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::DynList< T >::append(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), N, nodes, and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| LargeGraphStress | |||
| ) |
Definition at line 801 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), N, nodes, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| LinearChain | |||
| ) |
Definition at line 233 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| ListsThatHoldBlocksKeepThem | |||
| ) |
Definition at line 956 of file tarjan_test.cc.
References add_arc(), add_node(), arcs, Aleph::between(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::DynList< T >::get_first(), nodes, and Aleph::DynList< T >::size().
| TEST | ( | TarjanTest | , |
| MoveSemantics | |||
| ) |
Definition at line 742 of file tarjan_test.cc.
References add_arc(), add_node(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components().
| TEST | ( | TarjanTest | , |
| MultipleDisjointCycles | |||
| ) |
Definition at line 830 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanTest | , |
| MultipleSCCs | |||
| ) |
Definition at line 288 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::DynList< T >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| NullSourceValidation | |||
| ) |
Definition at line 691 of file tarjan_test.cc.
References add_node(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle().
| TEST | ( | TarjanTest | , |
| NumConnectedComponents | |||
| ) |
Definition at line 663 of file tarjan_test.cc.
References add_arc(), add_node(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components().
| TEST | ( | TarjanTest | , |
| ReuseInstance | |||
| ) |
| TEST | ( | TarjanTest | , |
| SCCTree | |||
| ) |
| TEST | ( | TarjanTest | , |
| SimpleCycle | |||
| ) |
Definition at line 258 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| SingleNodeNoLoop | |||
| ) |
Definition at line 97 of file tarjan_test.cc.
References add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::DynList< T >::get_first(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::DynList< T >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| SingleNodeWithLoop | |||
| ) |
Definition at line 133 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::Path< GT >::is_empty(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| StateGetters | |||
| ) |
| TEST | ( | TarjanTest | , |
| TwoNodesNoCycle | |||
| ) |
Definition at line 167 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::DynList< T >::size(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().
| TEST | ( | TarjanTest | , |
| TwoNodesWithCycle | |||
| ) |
Definition at line 201 of file tarjan_test.cc.
References add_arc(), add_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::compute_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), Aleph::Path< GT >::is_empty(), and Aleph::Tarjan_Connected_Components< GT, Itor, SA >::test_connectivity().