|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Index_Graph on every small multigraph, on the six kinds of graph, against a model. More...
#include <algorithm>#include <map>#include <set>#include <stdexcept>#include <string>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <tpl_indexGraph.H>#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustiveIndex< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustiveIndex, All_Kinds) | |
| TYPED_TEST (ExhaustiveIndex, SearchesMatchWhatTheGraphHas) | |
Index_Graph on every small multigraph, on the six kinds of graph, against a model.
Index_Graph keeps the nodes by their infos and the arcs by their ends, one arc for each pair, unordered unless the graph is directed. The test builds through it every multigraph of the domain of graph_harness.H: a second arc between the same ends must throw domain_error, and the others go in. Then every search must give what the graph has, after the insertions, after the removal of each arc and after that of each node. An index that keeps an arc that the graph freed would read it on a search; the test sees it by the size of the index, without searching.
Definition in file graph_exhaustive_index_test.cc.
| TYPED_TEST | ( | ExhaustiveIndex | , |
| SearchesMatchWhatTheGraphHas | |||
| ) |
Definition at line 152 of file graph_exhaustive_index_test.cc.
References Aleph::all(), Aleph::and, arcs, graph_harness::Spec::arcs, check(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::for_each_spec(), Aleph::DynList< T >::insert(), GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, nodes, Aleph::repeated(), graph_harness::Check::run(), and y.
| TYPED_TEST_SUITE | ( | ExhaustiveIndex | , |
| All_Kinds | |||
| ) |