|
Aleph-w 7.10.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 | |||
| ) |
| TYPED_TEST | ( | HldTypedTest | , |
| DecompositionProperties | |||
| ) |
Definition at line 482 of file hld_test.cc.
References Aleph::Gen_HLD< GT, T, Op, SA >::chain_head_id(), Aleph::Gen_HLD< GT, T, Op, SA >::depth_of_id(), nodes, Aleph::Gen_HLD< GT, T, Op, SA >::num_chains(), Aleph::Gen_HLD< GT, T, Op, SA >::position(), Aleph::Gen_HLD< GT, T, Op, SA >::root_id(), Aleph::Gen_HLD< GT, T, Op, SA >::size(), and Aleph::Gen_HLD< GT, T, Op, SA >::subtree_size_of_id().
| TYPED_TEST | ( | HldTypedTest | , |
| EmptyTree | |||
| ) |
| TYPED_TEST | ( | HldTypedTest | , |
| LcaFromHLD | |||
| ) |
Definition at line 450 of file hld_test.cc.
References Aleph::Gen_HLD< GT, T, Op, SA >::distance(), Aleph::Gen_Binary_Lifting_LCA< GT, SA >::distance(), Aleph::Gen_HLD< GT, T, Op, SA >::lca(), Aleph::Gen_Binary_Lifting_LCA< GT, SA >::lca(), and nodes.
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreePathMax | |||
| ) |
Definition at line 320 of file hld_test.cc.
References nodes, and Aleph::Gen_HLD< GT, T, Op, SA >::path_query().
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreePathSum | |||
| ) |
Definition at line 272 of file hld_test.cc.
References nodes, and Aleph::Gen_HLD< GT, T, Op, SA >::path_query().
| TYPED_TEST | ( | HldTypedTest | , |
| ManualTreeSubtreeQuery | |||
| ) |
Definition at line 349 of file hld_test.cc.
References nodes, and Aleph::Gen_HLD< GT, T, Op, SA >::subtree_query().
| TYPED_TEST | ( | HldTypedTest | , |
| PathQueryEdges | |||
| ) |
Definition at line 414 of file hld_test.cc.
References nodes, and Aleph::Gen_HLD< GT, T, Op, SA >::path_query_edges().
| TYPED_TEST | ( | HldTypedTest | , |
| PointUpdate | |||
| ) |
Definition at line 382 of file hld_test.cc.
References Aleph::Gen_HLD< GT, T, Op, SA >::get_value(), nodes, Aleph::Gen_HLD< GT, T, Op, SA >::path_query(), Aleph::Gen_HLD< GT, T, Op, SA >::point_update(), and Aleph::Gen_HLD< GT, T, Op, SA >::subtree_query().
| TYPED_TEST | ( | HldTypedTest | , |
| SingleNode | |||
| ) |
Definition at line 249 of file hld_test.cc.
References Aleph::Gen_HLD< GT, T, Op, SA >::depth_of(), Aleph::Gen_HLD< GT, T, Op, SA >::distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Gen_HLD< GT, T, Op, SA >::lca(), Aleph::Gen_HLD< GT, T, Op, SA >::num_chains(), Aleph::Gen_HLD< GT, T, Op, SA >::parent_of(), Aleph::Gen_HLD< GT, T, Op, SA >::path_query(), Aleph::Gen_HLD< GT, T, Op, SA >::root(), Aleph::Gen_HLD< GT, T, Op, SA >::size(), and Aleph::Gen_HLD< GT, T, Op, SA >::subtree_query().
| TYPED_TEST | ( | HldTypedTest | , |
| StressRandomAgainstNaive | |||
| ) |
Definition at line 604 of file hld_test.cc.
References Aleph::Gen_HLD< GT, T, Op, SA >::distance(), Aleph::Gen_HLD< GT, T, Op, SA >::lca(), nodes, Aleph::Gen_HLD< GT, T, Op, SA >::path_query(), Aleph::Gen_HLD< GT, T, Op, SA >::point_update(), rng, root(), and Aleph::Gen_HLD< GT, T, Op, SA >::subtree_query().
| TYPED_TEST | ( | HldTypedTest | , |
| ValidationErrors | |||
| ) |
Definition at line 530 of file hld_test.cc.
References nodes.