|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tpl Components. More...
#include <gtest/gtest.h>#include <tpl_components.H>#include <tpl_graph.H>#include <tpl_sgraph.H>#include <tpl_agraph.H>Go to the source code of this file.
Classes | |
| class | BuildSubgraphTest |
| class | InconnectedComponentsTest |
| class | ComponentsAllGraphs< GraphType > |
| class | ComponentsUndirectedGraphs< GraphType > |
Typedefs | |
| using | ListGraph = List_Graph< Graph_Node< int >, Graph_Arc< int > > |
| using | ListDigraph = List_Digraph< Graph_Node< int >, Graph_Arc< int > > |
| using | SparseGraph = List_SGraph< Graph_Snode< int >, Graph_Sarc< int > > |
| using | SparseDigraph = List_SDigraph< Graph_Snode< int >, Graph_Sarc< int > > |
| using | ArrayGraph = Array_Graph< Graph_Anode< int >, Graph_Aarc< int > > |
| using | ArrayDigraph = Array_Digraph< Graph_Anode< int >, Graph_Aarc< int > > |
| using | GraphTypes = ::testing::Types< ListGraph, ListDigraph, SparseGraph, SparseDigraph, ArrayGraph, ArrayDigraph > |
| using | UndirectedGraphTypes = ::testing::Types< ListGraph, SparseGraph, ArrayGraph > |
Tests for Tpl Components.
Definition in file tpl_components_test.cc.
| using ArrayDigraph = Array_Digraph<Graph_Anode<int>, Graph_Aarc<int> > |
Definition at line 72 of file tpl_components_test.cc.
| using ArrayGraph = Array_Graph<Graph_Anode<int>, Graph_Aarc<int> > |
Definition at line 71 of file tpl_components_test.cc.
| using GraphTypes = ::testing::Types< ListGraph, ListDigraph, SparseGraph, SparseDigraph, ArrayGraph, ArrayDigraph > |
Definition at line 413 of file tpl_components_test.cc.
| using ListDigraph = List_Digraph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 64 of file tpl_components_test.cc.
| using ListGraph = List_Graph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 63 of file tpl_components_test.cc.
| using SparseDigraph = List_SDigraph<Graph_Snode<int>, Graph_Sarc<int> > |
Definition at line 68 of file tpl_components_test.cc.
| using SparseGraph = List_SGraph<Graph_Snode<int>, Graph_Sarc<int> > |
Definition at line 67 of file tpl_components_test.cc.
| using UndirectedGraphTypes = ::testing::Types< ListGraph, SparseGraph, ArrayGraph > |
Definition at line 433 of file tpl_components_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 586 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| BuildNodeList | |||
| ) |
Definition at line 203 of file tpl_components_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | BuildSubgraphTest | , |
| DisconnectedGraph_BuildsOneComponent | |||
| ) |
Definition at line 143 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| NodeMapping | |||
| ) |
Definition at line 165 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| NullptrThrows | |||
| ) |
Definition at line 220 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| ReturnSubgraph | |||
| ) |
Definition at line 186 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| SingleNode | |||
| ) |
Definition at line 97 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| TriangleGraph | |||
| ) |
Definition at line 125 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | BuildSubgraphTest | , |
| TwoNodesConnected | |||
| ) |
Definition at line 110 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| ComputeAsNodeLists | |||
| ) |
Definition at line 297 of file tpl_components_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | InconnectedComponentsTest | , |
| CountComponents | |||
| ) |
Definition at line 313 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| EmptyGraph | |||
| ) |
Definition at line 288 of file tpl_components_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_EmptyGraph | |||
| ) |
Definition at line 353 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_False | |||
| ) |
Definition at line 340 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_SingleNode | |||
| ) |
Definition at line 360 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_True | |||
| ) |
Definition at line 327 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| LargeConnectedGraph | |||
| ) |
Definition at line 384 of file tpl_components_test.cc.
References Aleph::DynArray< T >::append(), Aleph::maps(), N, and nodes.
| TEST_F | ( | InconnectedComponentsTest | , |
| ManyComponents | |||
| ) |
Definition at line 373 of file tpl_components_test.cc.
References Aleph::maps().
| TEST_F | ( | InconnectedComponentsTest | , |
| SingleComponent | |||
| ) |
Definition at line 233 of file tpl_components_test.cc.
References Aleph::DynList< T >::get_first(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | InconnectedComponentsTest | , |
| ThreeComponents | |||
| ) |
Definition at line 274 of file tpl_components_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | InconnectedComponentsTest | , |
| TwoComponents | |||
| ) |
Definition at line 249 of file tpl_components_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphNullptrThrows | |||
| ) |
Definition at line 480 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::maps().
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphSingleNode | |||
| ) |
Definition at line 441 of file tpl_components_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_node(), Aleph::maps(), GraphCommon< GT, Node, Arc >::reset_arcs(), and GraphCommon< GT, Node, Arc >::reset_nodes().
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphTriangle | |||
| ) |
Definition at line 458 of file tpl_components_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(), Aleph::maps(), GraphCommon< GT, Node, Arc >::reset_arcs(), and GraphCommon< GT, Node, Arc >::reset_nodes().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| CountComponents | |||
| ) |
Definition at line 531 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::maps().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| EmptyGraphIsConnected | |||
| ) |
Definition at line 575 of file tpl_components_test.cc.
References Aleph::maps().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| IsConnectedFalse | |||
| ) |
Definition at line 559 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::maps().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| IsConnectedTrue | |||
| ) |
Definition at line 545 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::maps().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| SingleComponent | |||
| ) |
Definition at line 493 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::maps(), and Aleph::HTList::size().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| TwoComponents | |||
| ) |
Definition at line 511 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::maps(), and Aleph::HTList::size().
| TYPED_TEST_SUITE | ( | ComponentsAllGraphs | , |
| GraphTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | ComponentsUndirectedGraphs | , |
| UndirectedGraphTypes | |||
| ) |