|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for HLD.H (Heavy-Light Decomposition). More...
#include <gtest/gtest.h>#include <algorithm>#include <cstddef>#include <functional>#include <limits>#include <numeric>#include <random>#include <stdexcept>#include <utility>#include <vector>#include <HLD.H>#include <LCA.H>#include <tpl_agraph.H>#include <tpl_graph.H>#include <tpl_sgraph.H>#include "test_graph_helpers.h"Go to the source code of this file.
Functions | |
| TYPED_TEST (HldTypedTest, EmptyTree) | |
| TYPED_TEST (HldTypedTest, SingleNode) | |
| TYPED_TEST (HldTypedTest, ManualTreePathSum) | |
| TYPED_TEST (HldTypedTest, ManualTreePathMax) | |
| TYPED_TEST (HldTypedTest, ManualTreeSubtreeQuery) | |
| TYPED_TEST (HldTypedTest, PointUpdate) | |
| TYPED_TEST (HldTypedTest, PathQueryEdges) | |
| TYPED_TEST (HldTypedTest, LcaFromHLD) | |
| TYPED_TEST (HldTypedTest, DecompositionProperties) | |
| TYPED_TEST (HldTypedTest, ValidationErrors) | |
| TYPED_TEST (HldTypedTest, ArcFilter) | |
| TYPED_TEST (HldTypedTest, StressRandomAgainstNaive) | |
Tests for HLD.H (Heavy-Light Decomposition).
Coverage:
Definition in file hld_test.cc.
| TYPED_TEST | ( | HldTypedTest | , |
| ArcFilter | |||
| ) |
Definition at line 566 of file hld_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), l, and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| DecompositionProperties | |||
| ) |
Definition at line 482 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| EmptyTree | |||
| ) |
Definition at line 233 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TYPED_TEST | ( | HldTypedTest | , |
| LcaFromHLD | |||
| ) |
Definition at line 450 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreePathMax | |||
| ) |
Definition at line 320 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreePathSum | |||
| ) |
Definition at line 272 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreeSubtreeQuery | |||
| ) |
Definition at line 349 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| PathQueryEdges | |||
| ) |
Definition at line 414 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| PointUpdate | |||
| ) |
Definition at line 382 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| SingleNode | |||
| ) |
Definition at line 249 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | HldTypedTest | , |
| StressRandomAgainstNaive | |||
| ) |
Definition at line 604 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), nodes, rng, and root().
| TYPED_TEST | ( | HldTypedTest | , |
| ValidationErrors | |||
| ) |
Definition at line 530 of file hld_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and nodes.