|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The structure of every small multigraph, on the six kinds of graph, against a model of its lists. More...
#include <algorithm>#include <map>#include <set>#include <stdexcept>#include <string>#include <type_traits>#include <typeinfo>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <single_graph.H>#include "graph_filter_catalog.H"#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustiveStructure< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustiveStructure, All_Kinds) | |
| TYPED_TEST (ExhaustiveStructure, IncidenceMatchesTheModel) | |
| TYPED_TEST (ExhaustiveStructure, IteratorsWalkBothWaysWithTheFilter) | |
| TYPED_TEST (ExhaustiveStructure, InArcsOfAGraphThatSaysThatItIsDirected) | |
| TYPED_TEST (ExhaustiveStructure, RemovalsMatchTheModel) | |
| TYPED_TEST (ExhaustiveStructure, CopiesMatchTheModel) | |
| TYPED_TEST (ExhaustiveStructure, PathsFollowEveryWalk) | |
| TYPED_TEST (ExhaustiveStructure, PathsRejectWhatDoesNotFollow) | |
| TYPED_TEST (ExhaustiveStructure, DisconnectedArcsComeBack) | |
| TYPED_TEST (ExhaustiveStructure, ClearedGraphsAreEmptyAndTakeNodesAgain) | |
| TYPED_TEST (ExhaustiveStructure, SortsOrderTheIteratorsAndKeepTheGraph) | |
| TYPED_TEST (ExhaustiveStructure, SingleGraphsHaveNoLoopsNorParallelArcs) | |
The structure of every small multigraph, on the six kinds of graph, against a model of its lists.
The model of a spec is what each kind of graph keeps: a node holds in its list the arcs that leave it and, in a graph that is not directed, the arcs that enter it from another node; a loop is in the list of its node once. The tests compare with that model the incidence of every multigraph of the domain of graph_harness.H: the counts, the iterators of the graph and of a node, in both directions and with each set of hidden arcs, the arcs in and out, through every form and through In_Arcs_Index, also on a graph of an undirected kind that says that it is directed, the searches of arcs, the graph left by each removal, by each arc disconnected and connected again, by clear_graph() and by the sorts, the copies, and the paths along every short walk.
Definition in file graph_exhaustive_structure_test.cc.
| TYPED_TEST | ( | ExhaustiveStructure | , |
| ClearedGraphsAreEmptyAndTakeNodesAgain | |||
| ) |
Definition at line 1141 of file graph_exhaustive_structure_test.cc.
References Aleph::clear_graph(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::none(), graph_harness::Check::run(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::swap().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| CopiesMatchTheModel | |||
| ) |
Definition at line 611 of file graph_exhaustive_structure_test.cc.
References Aleph::and, assign(), Aleph::copy(), Aleph::copy_graph(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_arc_it(), Aleph::DynList< T >::Iterator::get_curr(), GraphCommon< GT, Node, Arc >::get_node_it(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::HTList::Iterator::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), Aleph::none(), graph_harness::num(), graph_harness::Check::run(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::swap(), and Aleph::swap().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| DisconnectedArcsComeBack | |||
| ) |
Definition at line 1107 of file graph_exhaustive_structure_test.cc.
References graph_harness::Spec::arcs, graph_harness::Built< GT >::arcs, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::connect_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::disconnect_arc(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::is_digraph(), and graph_harness::Check::run().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| InArcsOfAGraphThatSaysThatItIsDirected | |||
| ) |
Definition at line 483 of file graph_exhaustive_structure_test.cc.
References graph_harness::Spec::arcs, graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), Aleph::for_each_in_arc(), graph_harness::for_each_spec(), Aleph::DynList< T >::Iterator::get_curr(), LocateFunctions< Container, Type >::get_it(), Aleph::In_Arcs_Index< GT, SA >::get_it(), Aleph::HTList::Iterator::has_curr(), GraphCommon< GT, Node, Arc >::in_arcs(), Aleph::in_arcs(), Aleph::In_Arcs_Index< GT, SA >::in_degree(), GraphCommon< GT, Node, Arc >::in_degree(), Aleph::in_degree(), GraphCommon< GT, Node, Arc >::in_nodes(), Aleph::in_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), l, graph_harness::Spec::n, Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), graph_harness::num(), r, graph_harness::Check::run(), GraphCommon< GT, Node, Arc >::set_digraph(), Aleph::DynList< T >::size(), and Aleph::size().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| IncidenceMatchesTheModel | |||
| ) |
Definition at line 221 of file graph_exhaustive_structure_test.cc.
References Aleph::all_in_arc(), GraphCommon< GT, Node, Arc >::all_in_arcs(), GraphCommon< GT, Node, Arc >::all_out_arcs(), Aleph::and, arcs, graph_harness::Spec::arcs, check(), graph_harness::domain(), Aleph::exists_in_arc(), graph_harness::Check::expect(), graph_harness::Check::fail(), GraphCommon< GT, Node, Arc >::for_each_in_arc(), Aleph::for_each_in_arc(), GraphCommon< GT, Node, Arc >::for_each_out_arc(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::DynList< T >::Iterator::get_curr(), Aleph::DynList< T >::Iterator::get_curr_ne(), Aleph::In_Arcs_Index< GT, SA >::get_it(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::HTList::Iterator::has_curr(), GraphCommon< GT, Node, Arc >::in_arcs(), Aleph::in_arcs(), Aleph::In_Arcs_Index< GT, SA >::in_degree(), GraphCommon< GT, Node, Arc >::in_degree(), Aleph::in_degree(), GraphCommon< GT, Node, Arc >::in_nodes(), Aleph::in_nodes(), GraphCommon< GT, Node, Arc >::in_pairs(), Aleph::in_pairs(), GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), nodes, graph_harness::Built< GT >::nodes, graph_harness::num(), out, GraphCommon< GT, Node, Arc >::out_arcs(), GraphCommon< GT, Node, Arc >::out_degree(), GraphCommon< GT, Node, Arc >::out_nodes(), GraphCommon< GT, Node, Arc >::out_pairs(), graph_harness::Check::run(), Aleph::search(), GraphCommon< GT, Node, Arc >::search_arc(), GraphCommon< GT, Node, Arc >::search_directed_arc(), Aleph::traverse_in_arcs(), and y.
| TYPED_TEST | ( | ExhaustiveStructure | , |
| IteratorsWalkBothWaysWithTheFilter | |||
| ) |
Definition at line 429 of file graph_exhaustive_structure_test.cc.
References graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::In_Arcs_Index< GT, SA >::get_it(), GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, graph_harness::Built< GT >::nodes, graph_harness::Spec::num_arcs(), out, and graph_harness::Check::run().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| PathsFollowEveryWalk | |||
| ) |
Definition at line 833 of file graph_exhaustive_structure_test.cc.
References Aleph::and, Aleph::Path< GT >::append(), Aleph::Path< GT >::append_directed(), graph_harness::Spec::arcs, graph_harness::Built< GT >::arcs, Aleph::Path< GT >::check(), check(), Aleph::Path< GT >::check_directed(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::Path< GT >::insert(), Aleph::Path< GT >::insert_directed(), GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::Path< GT >::is_empty(), graph_harness::Built< GT >::nodes, graph_harness::num(), r, Aleph::Path< GT >::remove_first_node(), Aleph::Path< GT >::remove_last_node(), graph_harness::Check::run(), Aleph::Path< GT >::swap(), and w.
| TYPED_TEST | ( | ExhaustiveStructure | , |
| PathsRejectWhatDoesNotFollow | |||
| ) |
Definition at line 981 of file graph_exhaustive_structure_test.cc.
References Aleph::and, Aleph::Path< GT >::append(), Aleph::Path< GT >::append_directed(), graph_harness::Spec::arcs, graph_harness::Built< GT >::arcs, graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::insert(), Aleph::Path< GT >::insert_directed(), GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, graph_harness::Built< GT >::nodes, graph_harness::Check::run(), Aleph::Path< GT >::size(), and y.
| TYPED_TEST | ( | ExhaustiveStructure | , |
| RemovalsMatchTheModel | |||
| ) |
Definition at line 558 of file graph_exhaustive_structure_test.cc.
References Aleph::all(), arcs, graph_harness::Spec::arcs, graph_harness::Built< GT >::arcs, graph_harness::domain(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, nodes, graph_harness::Built< GT >::nodes, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_node().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| SingleGraphsHaveNoLoopsNorParallelArcs | |||
| ) |
Definition at line 1211 of file graph_exhaustive_structure_test.cc.
References Aleph::and, graph_harness::Spec::arcs, graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::is_digraph(), and graph_harness::Check::run().
| TYPED_TEST | ( | ExhaustiveStructure | , |
| SortsOrderTheIteratorsAndKeepTheGraph | |||
| ) |
Definition at line 1167 of file graph_exhaustive_structure_test.cc.
References arcs, graph_harness::domain(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_arc_it(), Aleph::DynList< T >::Iterator::get_curr(), GraphCommon< GT, Node, Arc >::get_node_it(), Aleph::HTList::Iterator::has_curr(), GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), nodes, graph_harness::num(), GraphCommon< GT, Node, Arc >::sort_arcs(), GraphCommon< GT, Node, Arc >::sort_nodes(), and y.
| TYPED_TEST_SUITE | ( | ExhaustiveStructure | , |
| All_Kinds | |||
| ) |