Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_exhaustive_structure_test.cc File Reference

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"
Include dependency graph for graph_exhaustive_structure_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TYPED_TEST() [1/11]

◆ TYPED_TEST() [2/11]

◆ TYPED_TEST() [3/11]

◆ TYPED_TEST() [4/11]

◆ TYPED_TEST() [5/11]

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() [6/11]

◆ TYPED_TEST() [7/11]

◆ TYPED_TEST() [8/11]

◆ TYPED_TEST() [9/11]

◆ TYPED_TEST() [10/11]

◆ TYPED_TEST() [11/11]

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ExhaustiveStructure  ,
All_Kinds   
)