|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Exhaustive tests for tpl_graph.H (List_Graph, List_Digraph, Path) More...
#include <gtest/gtest.h>#include <vector>#include <algorithm>#include <memory>#include <stdexcept>#include <type_traits>#include <random>#include <string>#include <tpl_graph.H>#include <tpl_agraph.H>#include <tpl_sgraph.H>Go to the source code of this file.
Classes | |
| class | GraphBasicTest |
| class | GraphNodeRemovalTest |
| class | GraphArcRemovalTest |
| class | GraphIteratorTest |
| struct | EvenNodeFilter |
| struct | HighWeightArcFilter |
| class | GraphMoveTest |
| class | PathTest |
| class | DirectedPathTest |
| class | GraphExceptionTest |
| class | DigraphTest |
| class | GraphFunctionalTest |
| class | GraphStressTest |
| struct | DirectedFlag< G > |
Typedefs | |
| using | Graph = List_Graph< Graph_Node< int >, Graph_Arc< double > > |
| using | TestDigraph = List_Digraph< Graph_Node< int >, Graph_Arc< double > > |
| using | StringGraph = List_Graph< Graph_Node< string >, Graph_Arc< string > > |
| using | Undirected_Graph_Kinds = ::testing::Types< List_Graph< Graph_Node< int >, Graph_Arc< int > >, List_SGraph< Graph_Snode< int >, Graph_Sarc< int > >, Array_Graph< Graph_Anode< int >, Graph_Aarc< int > > > |
Functions | |
| TEST (GraphNodeTest, DefaultConstruction) | |
| TEST (GraphNodeTest, ConstructionWithInfo) | |
| TEST (GraphNodeTest, CopyConstruction) | |
| TEST (GraphNodeTest, MoveConstruction) | |
| TEST (GraphNodeTest, CopyAssignment) | |
| TEST (GraphNodeTest, SelfAssignment) | |
| TEST (GraphNodeTest, ConstructionFromPointer) | |
| TEST (GraphArcTest, DefaultConstruction) | |
| TEST (GraphArcTest, ConstructionWithInfo) | |
| TEST (GraphArcTest, CopyConstruction) | |
| TEST (GraphArcTest, CopyAssignment) | |
| TEST (GraphArcTest, SelfAssignment) | |
| TEST_F (GraphBasicTest, DefaultConstructorCreatesEmptyGraph) | |
| TEST_F (GraphBasicTest, DefaultConstructorCreatesEmptyDigraph) | |
| TEST_F (GraphBasicTest, InsertSingleNode) | |
| TEST_F (GraphBasicTest, InsertMultipleNodes) | |
| TEST_F (GraphBasicTest, InsertArcBetweenTwoNodes) | |
| TEST_F (GraphBasicTest, InsertSelfLoop) | |
| TEST_F (GraphNodeRemovalTest, RemoveSingleNode) | |
| TEST_F (GraphNodeRemovalTest, RemoveNodeWithArcs) | |
| TEST_F (GraphNodeRemovalTest, RemoveAllNodes) | |
| TEST_F (GraphArcRemovalTest, RemoveSingleArc) | |
| TEST_F (GraphArcRemovalTest, RemoveAllArcs) | |
| TEST_F (GraphArcRemovalTest, DisconnectAndReconnectArc) | |
| TEST_F (GraphIteratorTest, NodeIteratorTraversesAllNodes) | |
| TEST_F (GraphIteratorTest, ArcIteratorTraversesAllArcs) | |
| TEST_F (GraphIteratorTest, NodeArcIteratorTraversesAdjacentArcs) | |
| TEST_F (GraphIteratorTest, IteratorResetFirst) | |
| TEST_F (GraphIteratorTest, IteratorResetLast) | |
| TEST_F (GraphIteratorTest, FilteredNodeIterator) | |
| TEST_F (GraphIteratorTest, FilteredArcIterator) | |
| TEST_F (GraphIteratorTest, SearchArcBetweenNodes) | |
| TEST_F (GraphIteratorTest, SearchArcNotFound) | |
| TEST_F (GraphIteratorTest, SearchDirectedArc) | |
| TEST_F (GraphMoveTest, MoveConstructor) | |
| TEST_F (GraphMoveTest, MoveAssignment) | |
| TEST_F (GraphMoveTest, SwapGraphs) | |
| TEST_F (GraphMoveTest, SelfAssignment) | |
| TEST_F (GraphMoveTest, CopyConstruction) | |
| TEST_F (GraphMoveTest, CopyAssignment) | |
| TEST_F (GraphMoveTest, CopyToNonEmptyGraph) | |
| TEST_F (PathTest, EmptyPathConstruction) | |
| TEST_F (PathTest, PathWithSingleNode) | |
| TEST_F (PathTest, AppendArcToPath) | |
| TEST_F (PathTest, AppendNodeToPath) | |
| TEST_F (PathTest, InsertArcToPath) | |
| TEST_F (PathTest, InsertNodeToPath) | |
| TEST_F (PathTest, BuildFullPath) | |
| TEST_F (PathTest, FirstAndLastArc) | |
| TEST_F (PathTest, PathContainsNode) | |
| TEST_F (PathTest, PathContainsArc) | |
| TEST_F (PathTest, PathIterator) | |
| TEST_F (PathTest, PathNodesList) | |
| TEST_F (PathTest, PathArcsList) | |
| TEST_F (PathTest, PathCopyConstruction) | |
| TEST_F (PathTest, PathMoveConstruction) | |
| TEST_F (PathTest, RemoveLastNode) | |
| TEST_F (PathTest, RemoveTheOnlyNode) | |
| TEST_F (PathTest, RemoveFirstNode) | |
| TEST_F (PathTest, IsCycle) | |
| TEST_F (PathTest, IsNotCycle) | |
| TEST_F (DirectedPathTest, AppendDirectedNode) | |
| TEST_F (DirectedPathTest, AppendDirectedArc) | |
| TEST_F (DirectedPathTest, InsertDirectedNode) | |
| TEST_F (DirectedPathTest, InsertDirectedArc) | |
| TEST_F (GraphExceptionTest, GetFirstNodeOnEmptyGraphThrows) | |
| TEST_F (GraphExceptionTest, GetFirstArcOnEmptyGraphThrows) | |
| TEST_F (GraphExceptionTest, PathAppendOnEmptyPathThrows) | |
| TEST_F (GraphExceptionTest, PathAppendInvalidArcThrows) | |
| TEST_F (GraphExceptionTest, PathInsertOnEmptyPathThrows) | |
| TEST_F (DigraphTest, NodeDegrees) | |
| TEST_F (DigraphTest, TraverseArcsFromNode) | |
| TEST_F (DigraphTest, ArcDirection) | |
| TEST_F (GraphFunctionalTest, ForEachNode) | |
| TEST_F (GraphFunctionalTest, ForEachArc) | |
| TEST_F (GraphFunctionalTest, ForallNode) | |
| TEST_F (GraphFunctionalTest, ForallArc) | |
| TEST_F (GraphFunctionalTest, FoldlNodes) | |
| TEST_F (GraphFunctionalTest, FoldlArcs) | |
| TEST_F (GraphFunctionalTest, FindPathDepthFirst) | |
| TEST_F (GraphFunctionalTest, FindPathDepthFirstNotFound) | |
| TEST_F (GraphStressTest, InsertManyNodes) | |
| TEST_F (GraphStressTest, InsertManyArcs) | |
| TEST_F (GraphStressTest, InsertAndRemoveManyNodes) | |
| TEST_F (GraphFunctionalTest, SortNodes) | |
| TEST_F (GraphFunctionalTest, SortArcs) | |
| TEST_F (GraphFunctionalTest, SortArcsKeepsEveryArcIfTheComparisonThrows) | |
| TEST (GraphCommonTest, GetControlBitsOfANode) | |
| TEST (GraphCommonTest, EmplaceForwardsItsArguments) | |
| TEST (GraphNodeTest, ACopyOfTheDataThatThrowsReachesTheCaller) | |
| TEST (CopyGraphTest, CopiesTheArcsBetweenTheNodesThatItShows) | |
| TEST (DigraphSwap, SwapsOnlyWithADigraph) | |
| TYPED_TEST_SUITE (DirectedFlag, Undirected_Graph_Kinds) | |
| TYPED_TEST (DirectedFlag, GoesWithTheArcs) | |
| TEST_F (GraphFunctionalTest, ClearGraph) | |
| TEST (ConceptsTest, NodeIteratorSatisfiesConcept) | |
| TEST (ConceptsTest, ArcIteratorSatisfiesConcept) | |
| TEST (ConceptsTest, NodeArcIteratorSatisfiesConcept) | |
| template<BasicGraphIterator It> | |
| size_t | count_elements (It it) |
| TEST (ConceptsTest, ConceptConstrainedFunction) | |
| int | main (int argc, char **argv) |
Exhaustive tests for tpl_graph.H (List_Graph, List_Digraph, Path)
These tests cover all major operations including:
Definition in file tpl_graph_test.cc.
| using Graph = List_Graph<Graph_Node<int>, Graph_Arc<double> > |
Definition at line 67 of file tpl_graph_test.cc.
| using StringGraph = List_Graph<Graph_Node<string>, Graph_Arc<string> > |
Definition at line 69 of file tpl_graph_test.cc.
| using TestDigraph = List_Digraph<Graph_Node<int>, Graph_Arc<double> > |
Definition at line 68 of file tpl_graph_test.cc.
| using Undirected_Graph_Kinds = ::testing::Types<List_Graph<Graph_Node<int>, Graph_Arc<int> >, List_SGraph<Graph_Snode<int>, Graph_Sarc<int> >, Array_Graph<Graph_Anode<int>, Graph_Aarc<int> >> |
Definition at line 1396 of file tpl_graph_test.cc.
| size_t count_elements | ( | It | it | ) |
Definition at line 1526 of file tpl_graph_test.cc.
References Aleph::count(), Aleph::HTList::Iterator::has_curr(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
Referenced by TEST().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1549 of file tpl_graph_test.cc.
| TEST | ( | ConceptsTest | , |
| ArcIteratorSatisfiesConcept | |||
| ) |
Definition at line 1491 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_arc_it(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ConceptsTest | , |
| ConceptConstrainedFunction | |||
| ) |
Definition at line 1534 of file tpl_graph_test.cc.
References count_elements(), GraphCommon< GT, Node, Arc >::get_node_it(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ConceptsTest | , |
| NodeArcIteratorSatisfiesConcept | |||
| ) |
Definition at line 1506 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_arc_it(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ConceptsTest | , |
| NodeIteratorSatisfiesConcept | |||
| ) |
Definition at line 1474 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_node_it(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | CopyGraphTest | , |
| CopiesTheArcsBetweenTheNodesThatItShows | |||
| ) |
Definition at line 1311 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and y.
| TEST | ( | DigraphSwap | , |
| SwapsOnlyWithADigraph | |||
| ) |
Definition at line 1363 of file tpl_graph_test.cc.
References Aleph::Digraph< BaseGraph >::swap().
| TEST | ( | GraphArcTest | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 134 of file tpl_graph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphArcTest | , |
| CopyAssignment | |||
| ) |
Definition at line 147 of file tpl_graph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphArcTest | , |
| CopyConstruction | |||
| ) |
Definition at line 140 of file tpl_graph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphArcTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 128 of file tpl_graph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphArcTest | , |
| SelfAssignment | |||
| ) |
Definition at line 155 of file tpl_graph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphCommonTest | , |
| EmplaceForwardsItsArguments | |||
| ) |
Definition at line 1251 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::emplace_arc(), and GraphCommon< GT, Node, Arc >::emplace_node().
| TEST | ( | GraphCommonTest | , |
| GetControlBitsOfANode | |||
| ) |
Definition at line 1203 of file tpl_graph_test.cc.
References Aleph::bits(), Aleph::Breadth_First, Aleph::Depth_First, GraphCommon< GT, Node, Arc >::get_control_bits(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), IS_NODE_VISITED, and NODE_BITS.
| TEST | ( | GraphNodeTest | , |
| ACopyOfTheDataThatThrowsReachesTheCaller | |||
| ) |
| TEST | ( | GraphNodeTest | , |
| ConstructionFromPointer | |||
| ) |
Definition at line 117 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphNodeTest | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 82 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphNodeTest | , |
| CopyAssignment | |||
| ) |
Definition at line 102 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphNodeTest | , |
| CopyConstruction | |||
| ) |
Definition at line 88 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphNodeTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 75 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphNodeTest | , |
| MoveConstruction | |||
| ) |
Definition at line 95 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphNodeTest | , |
| SelfAssignment | |||
| ) |
Definition at line 110 of file tpl_graph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST_F | ( | DigraphTest | , |
| ArcDirection | |||
| ) |
Definition at line 945 of file tpl_graph_test.cc.
| TEST_F | ( | DigraphTest | , |
| NodeDegrees | |||
| ) |
Definition at line 919 of file tpl_graph_test.cc.
References nodes.
| TEST_F | ( | DigraphTest | , |
| TraverseArcsFromNode | |||
| ) |
Definition at line 936 of file tpl_graph_test.cc.
References Aleph::count(), and nodes.
| TEST_F | ( | DirectedPathTest | , |
| AppendDirectedArc | |||
| ) |
Definition at line 820 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append_directed(), arcs, Aleph::Path< GT >::get_last_node(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | DirectedPathTest | , |
| AppendDirectedNode | |||
| ) |
Definition at line 812 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append_directed(), Aleph::Path< GT >::get_last_node(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | DirectedPathTest | , |
| InsertDirectedArc | |||
| ) |
Definition at line 836 of file tpl_graph_test.cc.
References arcs, Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::insert_directed(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | DirectedPathTest | , |
| InsertDirectedNode | |||
| ) |
Definition at line 828 of file tpl_graph_test.cc.
References Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::insert_directed(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | GraphArcRemovalTest | , |
| DisconnectAndReconnectArc | |||
| ) |
Definition at line 317 of file tpl_graph_test.cc.
| TEST_F | ( | GraphArcRemovalTest | , |
| RemoveAllArcs | |||
| ) |
Definition at line 308 of file tpl_graph_test.cc.
| TEST_F | ( | GraphArcRemovalTest | , |
| RemoveSingleArc | |||
| ) |
Definition at line 301 of file tpl_graph_test.cc.
| TEST_F | ( | GraphBasicTest | , |
| DefaultConstructorCreatesEmptyDigraph | |||
| ) |
Definition at line 180 of file tpl_graph_test.cc.
| TEST_F | ( | GraphBasicTest | , |
| DefaultConstructorCreatesEmptyGraph | |||
| ) |
Definition at line 173 of file tpl_graph_test.cc.
| TEST_F | ( | GraphBasicTest | , |
| InsertArcBetweenTwoNodes | |||
| ) |
Definition at line 207 of file tpl_graph_test.cc.
| TEST_F | ( | GraphBasicTest | , |
| InsertMultipleNodes | |||
| ) |
Definition at line 196 of file tpl_graph_test.cc.
References nodes.
| TEST_F | ( | GraphBasicTest | , |
| InsertSelfLoop | |||
| ) |
Definition at line 220 of file tpl_graph_test.cc.
| TEST_F | ( | GraphBasicTest | , |
| InsertSingleNode | |||
| ) |
Definition at line 187 of file tpl_graph_test.cc.
| TEST_F | ( | GraphExceptionTest | , |
| GetFirstArcOnEmptyGraphThrows | |||
| ) |
Definition at line 859 of file tpl_graph_test.cc.
| TEST_F | ( | GraphExceptionTest | , |
| GetFirstNodeOnEmptyGraphThrows | |||
| ) |
Definition at line 854 of file tpl_graph_test.cc.
| TEST_F | ( | GraphExceptionTest | , |
| PathAppendInvalidArcThrows | |||
| ) |
Definition at line 875 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append().
| TEST_F | ( | GraphExceptionTest | , |
| PathAppendOnEmptyPathThrows | |||
| ) |
Definition at line 865 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append().
| TEST_F | ( | GraphExceptionTest | , |
| PathInsertOnEmptyPathThrows | |||
| ) |
Definition at line 886 of file tpl_graph_test.cc.
References Aleph::Path< GT >::insert().
| TEST_F | ( | GraphFunctionalTest | , |
| ClearGraph | |||
| ) |
Definition at line 1447 of file tpl_graph_test.cc.
References Aleph::clear_graph(), GraphCommon< GT, Node, Arc >::get_num_arcs(), and GraphCommon< GT, Node, Arc >::get_num_nodes().
| TEST_F | ( | GraphFunctionalTest | , |
| FindPathDepthFirst | |||
| ) |
Definition at line 1024 of file tpl_graph_test.cc.
References Aleph::find_path_depth_first(), and nodes.
| TEST_F | ( | GraphFunctionalTest | , |
| FindPathDepthFirstNotFound | |||
| ) |
Definition at line 1032 of file tpl_graph_test.cc.
References Aleph::find_path_depth_first(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST_F | ( | GraphFunctionalTest | , |
| FoldlArcs | |||
| ) |
Definition at line 1012 of file tpl_graph_test.cc.
References Aleph::sum().
| TEST_F | ( | GraphFunctionalTest | , |
| FoldlNodes | |||
| ) |
Definition at line 1004 of file tpl_graph_test.cc.
References Aleph::sum().
| TEST_F | ( | GraphFunctionalTest | , |
| ForallArc | |||
| ) |
Definition at line 996 of file tpl_graph_test.cc.
| TEST_F | ( | GraphFunctionalTest | , |
| ForallNode | |||
| ) |
Definition at line 988 of file tpl_graph_test.cc.
| TEST_F | ( | GraphFunctionalTest | , |
| ForEachArc | |||
| ) |
Definition at line 981 of file tpl_graph_test.cc.
References Aleph::sum().
| TEST_F | ( | GraphFunctionalTest | , |
| ForEachNode | |||
| ) |
Definition at line 974 of file tpl_graph_test.cc.
References Aleph::sum().
| TEST_F | ( | GraphFunctionalTest | , |
| SortArcs | |||
| ) |
Definition at line 1118 of file tpl_graph_test.cc.
| TEST_F | ( | GraphFunctionalTest | , |
| SortArcsKeepsEveryArcIfTheComparisonThrows | |||
| ) |
Definition at line 1164 of file tpl_graph_test.cc.
| TEST_F | ( | GraphFunctionalTest | , |
| SortNodes | |||
| ) |
Definition at line 1100 of file tpl_graph_test.cc.
| TEST_F | ( | GraphIteratorTest | , |
| ArcIteratorTraversesAllArcs | |||
| ) |
Definition at line 360 of file tpl_graph_test.cc.
References Aleph::count().
| TEST_F | ( | GraphIteratorTest | , |
| FilteredArcIterator | |||
| ) |
Definition at line 423 of file tpl_graph_test.cc.
References Aleph::count(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST_F | ( | GraphIteratorTest | , |
| FilteredNodeIterator | |||
| ) |
Definition at line 414 of file tpl_graph_test.cc.
References Aleph::count(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
| TEST_F | ( | GraphIteratorTest | , |
| IteratorResetFirst | |||
| ) |
Definition at line 378 of file tpl_graph_test.cc.
| TEST_F | ( | GraphIteratorTest | , |
| IteratorResetLast | |||
| ) |
Definition at line 387 of file tpl_graph_test.cc.
| TEST_F | ( | GraphIteratorTest | , |
| NodeArcIteratorTraversesAdjacentArcs | |||
| ) |
Definition at line 369 of file tpl_graph_test.cc.
References Aleph::count(), and nodes.
| TEST_F | ( | GraphIteratorTest | , |
| NodeIteratorTraversesAllNodes | |||
| ) |
Definition at line 351 of file tpl_graph_test.cc.
References Aleph::count().
| TEST_F | ( | GraphIteratorTest | , |
| SearchArcBetweenNodes | |||
| ) |
Definition at line 436 of file tpl_graph_test.cc.
References nodes, and Aleph::search_arc().
| TEST_F | ( | GraphIteratorTest | , |
| SearchArcNotFound | |||
| ) |
Definition at line 443 of file tpl_graph_test.cc.
References nodes, and Aleph::search_arc().
| TEST_F | ( | GraphIteratorTest | , |
| SearchDirectedArc | |||
| ) |
Definition at line 449 of file tpl_graph_test.cc.
References nodes, and Aleph::search_directed_arc().
| TEST_F | ( | GraphMoveTest | , |
| CopyAssignment | |||
| ) |
Definition at line 537 of file tpl_graph_test.cc.
References Aleph::copy().
| TEST_F | ( | GraphMoveTest | , |
| CopyConstruction | |||
| ) |
Definition at line 523 of file tpl_graph_test.cc.
References Aleph::copy().
| TEST_F | ( | GraphMoveTest | , |
| CopyToNonEmptyGraph | |||
| ) |
Definition at line 546 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST_F | ( | GraphMoveTest | , |
| MoveAssignment | |||
| ) |
Definition at line 486 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), and GraphCommon< GT, Node, Arc >::get_num_nodes().
| TEST_F | ( | GraphMoveTest | , |
| MoveConstructor | |||
| ) |
Definition at line 474 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), and GraphCommon< GT, Node, Arc >::get_num_nodes().
| TEST_F | ( | GraphMoveTest | , |
| SelfAssignment | |||
| ) |
Definition at line 512 of file tpl_graph_test.cc.
| TEST_F | ( | GraphMoveTest | , |
| SwapGraphs | |||
| ) |
Definition at line 497 of file tpl_graph_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST_F | ( | GraphNodeRemovalTest | , |
| RemoveAllNodes | |||
| ) |
Definition at line 270 of file tpl_graph_test.cc.
| TEST_F | ( | GraphNodeRemovalTest | , |
| RemoveNodeWithArcs | |||
| ) |
Definition at line 254 of file tpl_graph_test.cc.
References nodes.
| TEST_F | ( | GraphNodeRemovalTest | , |
| RemoveSingleNode | |||
| ) |
Definition at line 247 of file tpl_graph_test.cc.
| TEST_F | ( | GraphStressTest | , |
| InsertAndRemoveManyNodes | |||
| ) |
Definition at line 1081 of file tpl_graph_test.cc.
References nodes.
| TEST_F | ( | GraphStressTest | , |
| InsertManyArcs | |||
| ) |
Definition at line 1062 of file tpl_graph_test.cc.
| TEST_F | ( | GraphStressTest | , |
| InsertManyNodes | |||
| ) |
Definition at line 1054 of file tpl_graph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST_F | ( | PathTest | , |
| AppendArcToPath | |||
| ) |
Definition at line 602 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| AppendNodeToPath | |||
| ) |
Definition at line 611 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), Aleph::Path< GT >::get_last_node(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| BuildFullPath | |||
| ) |
Definition at line 635 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| EmptyPathConstruction | |||
| ) |
Definition at line 586 of file tpl_graph_test.cc.
References Aleph::Path< GT >::is_empty(), and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| FirstAndLastArc | |||
| ) |
Definition at line 646 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::get_first_arc(), Aleph::Path< GT >::get_last_arc(), and nodes.
| TEST_F | ( | PathTest | , |
| InsertArcToPath | |||
| ) |
Definition at line 619 of file tpl_graph_test.cc.
References arcs, Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::insert(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| InsertNodeToPath | |||
| ) |
Definition at line 627 of file tpl_graph_test.cc.
References Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::insert(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| IsCycle | |||
| ) |
Definition at line 768 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::is_cycle(), and nodes.
| TEST_F | ( | PathTest | , |
| IsNotCycle | |||
| ) |
Definition at line 780 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::is_cycle(), and nodes.
| TEST_F | ( | PathTest | , |
| PathArcsList | |||
| ) |
Definition at line 705 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::arcs(), and nodes.
| TEST_F | ( | PathTest | , |
| PathContainsArc | |||
| ) |
Definition at line 671 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::contains_arc(), and nodes.
| TEST_F | ( | PathTest | , |
| PathContainsNode | |||
| ) |
Definition at line 659 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::contains_node(), and nodes.
| TEST_F | ( | PathTest | , |
| PathCopyConstruction | |||
| ) |
Definition at line 715 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::copy(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| PathIterator | |||
| ) |
Definition at line 682 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, Aleph::Path< GT >::Iterator::has_current_node(), and nodes.
| TEST_F | ( | PathTest | , |
| PathMoveConstruction | |||
| ) |
Definition at line 725 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| PathNodesList | |||
| ) |
Definition at line 695 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, nodes, and Aleph::Path< GT >::nodes().
| TEST_F | ( | PathTest | , |
| PathWithSingleNode | |||
| ) |
Definition at line 593 of file tpl_graph_test.cc.
References Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), Aleph::Path< GT >::is_empty(), nodes, and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| RemoveFirstNode | |||
| ) |
Definition at line 757 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, nodes, Aleph::Path< GT >::remove_first_node(), and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| RemoveLastNode | |||
| ) |
Definition at line 736 of file tpl_graph_test.cc.
References Aleph::Path< GT >::append(), arcs, nodes, Aleph::Path< GT >::remove_last_node(), and Aleph::Path< GT >::size().
| TEST_F | ( | PathTest | , |
| RemoveTheOnlyNode | |||
| ) |
Definition at line 748 of file tpl_graph_test.cc.
References Aleph::Path< GT >::is_empty(), nodes, and Aleph::Path< GT >::remove_last_node().
| TYPED_TEST | ( | DirectedFlag | , |
| GoesWithTheArcs | |||
| ) |
Definition at line 1402 of file tpl_graph_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::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), GraphCommon< GT, Node, Arc >::is_digraph(), r, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_arc(), GraphCommon< GT, Node, Arc >::set_digraph(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::swap().
| TYPED_TEST_SUITE | ( | DirectedFlag | , |
| Undirected_Graph_Kinds | |||
| ) |