|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Archeap. More...
#include <gtest/gtest.h>#include <algorithm>#include <random>#include <unordered_map>#include <vector>#include <tpl_graph.H>#include <archeap.H>Go to the source code of this file.
Functions | |
| TEST (ArcHeapBasic, SingleArcInsertAndExtract) | |
| TEST (ArcHeapBasic, KeepsBestOfParallelArcs) | |
| TEST (ArcHeapBasic, IgnoresWorseArcForSameTarget) | |
| TEST (ArcHeapBasic, ExtractsArcsInIncreasingDistanceAcrossTargets) | |
| TEST (ArcHeapBasic, ClearsMappingForAllTargets) | |
| TEST (ArcHeapRandom, ExtractsNonDecreasingByDistance) | |
Tests for Archeap.
Definition in file archeap_test.cc.
| TEST | ( | ArcHeapBasic | , |
| ClearsMappingForAllTargets | |||
| ) |
Definition at line 179 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| ExtractsArcsInIncreasingDistanceAcrossTargets | |||
| ) |
Definition at line 153 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| IgnoresWorseArcForSameTarget | |||
| ) |
Definition at line 134 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| KeepsBestOfParallelArcs | |||
| ) |
Definition at line 115 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| SingleArcInsertAndExtract | |||
| ) |
Definition at line 95 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapRandom | , |
| ExtractsNonDecreasingByDistance | |||
| ) |
Definition at line 209 of file archeap_test.cc.
References access(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), nodes, rng, and w.