|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Cut Nodes. More...
#include <gtest/gtest.h>#include <set>#include <vector>#include <tpl_cut_nodes.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>Go to the source code of this file.
Functions | |
| TEST (CutNodes, PathGraphHasInternalCutNodes) | |
| TEST (CutNodes, CycleGraphHasNoCutNodes) | |
| TEST (CutNodes, StarGraphHasCenterAsCutNode) | |
| TEST (CutNodes, PaintSubgraphsRequiresCutNodesComputed) | |
| TEST (CutNodes, PaintSubgraphsAndMapCutGraphOnStar) | |
| TEST (CutNodes, MapSubgraphMatchesColorCounts) | |
| TEST (CutNodes, MapCutGraphMatchesCutArcCountOnPath) | |
| TEST (CutNodes, CompleteGraphHasNoCutNodes) | |
| TEST (CutNodes, TreeAllInternalNodesAreCutNodes) | |
| TEST (CutNodes, BridgeGraphHasMultipleCutNodes) | |
| TEST (CutNodes, BiconnectedGraphHasNoCutNodes) | |
| TEST (CutNodes, ArticulationAtRootNode) | |
| TEST (CutNodes, MapSubgraphWithoutPaintingThrows) | |
| TEST (CutNodes, MapCutGraphWithoutPaintingThrows) | |
| TEST (CutNodes, CorrectSequenceCutNodesPaintMap) | |
| TEST (CutNodes, MultipleCutNodesCallsReinitialize) | |
| TEST (CutNodes, OperatorWithoutStartUsesFirstNode) | |
| TEST (CutNodes, OperatorWithSpecificStart) | |
| TEST (CutNodes, PaintAssignsCorrectColors) | |
| TEST (CutNodes, CrossArcsIdentifiedCorrectly) | |
| TEST (CutNodes, CutArcsIdentifiedInBridge) | |
| TEST (CutNodes, NumberOfColorsMatchesComponents) | |
| TEST (CutNodes, MapSubgraphWithInvalidColorThrows) | |
| TEST (CutNodes, MappedSubgraphIsCorrect) | |
| TEST (CutNodes, BidirectionalMappingEstablished) | |
| TEST (CutNodes, CutGraphContainsOnlyCutNodes) | |
| TEST (CutNodes, CrossArcsListMatchesGraph) | |
| TEST (CutNodes, ComputeBlocksWithoutCutNodesThrows) | |
| TEST (CutNodes, ComputeBlocksAutoPaints) | |
| TEST (CutNodes, ComputeBlocksGeneratesAllBlocks) | |
| TEST (CutNodes, ComputeBlocksGeneratesCutGraph) | |
| TEST (CutNodes, ComputeBlocksGeneratesCrossArcList) | |
| TEST (CutNodes, SingleNodeHasNoCutNodes) | |
| TEST (CutNodes, TwoNodesWithArcNoCutNodes) | |
| TEST (CutNodes, TriangleNoCutNodes) | |
| TEST (CutNodes, SelfLoopDoesNotAffectCutNodes) | |
| TEST (CutNodes, ParallelArcsDoNotAffectCutNodes) | |
| TEST (CutNodes, CompleteWorkflowDetectPaintMapAll) | |
| TEST (CutNodes, MultipleIterationsOnSameGraph) | |
| TEST (CutNodes, LargeGraphStressTest) | |
| TEST (CutNodes, ExceptionDuringMapSubgraphClearsGraph) | |
Tests for Cut Nodes.
Definition in file cut_nodes_test.cc.
| TEST | ( | CutNodes | , |
| ArticulationAtRootNode | |||
| ) |
Definition at line 320 of file cut_nodes_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| BiconnectedGraphHasNoCutNodes | |||
| ) |
Definition at line 303 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| BidirectionalMappingEstablished | |||
| ) |
Definition at line 588 of file cut_nodes_test.cc.
References GraphCommon< GT, Node, Arc >::get_node_it(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| BridgeGraphHasMultipleCutNodes | |||
| ) |
Definition at line 283 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CompleteGraphHasNoCutNodes | |||
| ) |
Definition at line 242 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CompleteWorkflowDetectPaintMapAll | |||
| ) |
Definition at line 842 of file cut_nodes_test.cc.
References Aleph::color(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| ComputeBlocksAutoPaints | |||
| ) |
Definition at line 681 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::DynDlist< T >::size().
| TEST | ( | CutNodes | , |
| ComputeBlocksGeneratesAllBlocks | |||
| ) |
Definition at line 701 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::DynDlist< T >::size().
| TEST | ( | CutNodes | , |
| ComputeBlocksGeneratesCrossArcList | |||
| ) |
Definition at line 745 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| ComputeBlocksGeneratesCutGraph | |||
| ) |
Definition at line 724 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| ComputeBlocksWithoutCutNodesThrows | |||
| ) |
Definition at line 666 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CorrectSequenceCutNodesPaintMap | |||
| ) |
Definition at line 372 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CrossArcsIdentifiedCorrectly | |||
| ) |
Definition at line 482 of file cut_nodes_test.cc.
References GraphCommon< GT, Node, Arc >::get_arc_it(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CrossArcsListMatchesGraph | |||
| ) |
Definition at line 637 of file cut_nodes_test.cc.
References GraphCommon< GT, Node, Arc >::get_arc_it(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| CutArcsIdentifiedInBridge | |||
| ) |
Definition at line 503 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| CutGraphContainsOnlyCutNodes | |||
| ) |
Definition at line 616 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| CycleGraphHasNoCutNodes | |||
| ) |
Definition at line 120 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| ExceptionDuringMapSubgraphClearsGraph | |||
| ) |
Definition at line 908 of file cut_nodes_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| LargeGraphStressTest | |||
| ) |
Definition at line 891 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), N, nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| MapCutGraphMatchesCutArcCountOnPath | |||
| ) |
Definition at line 217 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| MapCutGraphWithoutPaintingThrows | |||
| ) |
Definition at line 357 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| MappedSubgraphIsCorrect | |||
| ) |
Definition at line 565 of file cut_nodes_test.cc.
References Aleph::color(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| MapSubgraphMatchesColorCounts | |||
| ) |
Definition at line 194 of file cut_nodes_test.cc.
References Aleph::color(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| MapSubgraphWithInvalidColorThrows | |||
| ) |
Definition at line 550 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| MapSubgraphWithoutPaintingThrows | |||
| ) |
Definition at line 343 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| MultipleCutNodesCallsReinitialize | |||
| ) |
Definition at line 395 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| MultipleIterationsOnSameGraph | |||
| ) |
Definition at line 873 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| NumberOfColorsMatchesComponents | |||
| ) |
Definition at line 524 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| OperatorWithoutStartUsesFirstNode | |||
| ) |
Definition at line 419 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| OperatorWithSpecificStart | |||
| ) |
Definition at line 434 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| PaintAssignsCorrectColors | |||
| ) |
Definition at line 453 of file cut_nodes_test.cc.
References Aleph::DynList< T >::insert(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| PaintSubgraphsAndMapCutGraphOnStar | |||
| ) |
Definition at line 163 of file cut_nodes_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::Dlink::Iterator::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), nodes, and Aleph::HTList::size().
| TEST | ( | CutNodes | , |
| PaintSubgraphsRequiresCutNodesComputed | |||
| ) |
Definition at line 151 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| ParallelArcsDoNotAffectCutNodes | |||
| ) |
Definition at line 823 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| PathGraphHasInternalCutNodes | |||
| ) |
Definition at line 105 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| SelfLoopDoesNotAffectCutNodes | |||
| ) |
Definition at line 808 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| SingleNodeHasNoCutNodes | |||
| ) |
Definition at line 768 of file cut_nodes_test.cc.
References Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| StarGraphHasCenterAsCutNode | |||
| ) |
Definition at line 136 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| TreeAllInternalNodesAreCutNodes | |||
| ) |
Definition at line 258 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| TriangleNoCutNodes | |||
| ) |
Definition at line 793 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.
| TEST | ( | CutNodes | , |
| TwoNodesWithArcNoCutNodes | |||
| ) |
Definition at line 780 of file cut_nodes_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::HTList::is_empty(), Aleph::maps(), and nodes.