|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
GoogleTest suite for Dijkstra.H. More...
#include <gtest/gtest.h>#include <algorithm>#include <climits>#include <functional>#include <limits>#include <map>#include <random>#include <stdexcept>#include <utility>#include <vector>#include <Dijkstra.H>#include <tpl_graph.H>Go to the source code of this file.
Classes | |
| class | Out_Iterator_AllArcs< GT, SA > |
| struct | BinHeapTag |
| struct | FibHeapTag |
| class | DijkstraHeapTest< HeapTag > |
| class | DijkstraDigraphHeapTest< HeapTag > |
| struct | Scaled_Distance |
| struct | Distance_Failure |
| struct | Table_Distance |
| struct | Weighted_Graph |
| struct | Factor_Only_Distance |
Typedefs | |
| using | GT = List_Graph< Graph_Node< int >, Graph_Arc< double > > |
| using | Node = GT::Node |
| using | Arc = GT::Arc |
| using | DGT = List_Digraph< Graph_Node< int >, Graph_Arc< double > > |
| using | DNode = DGT::Node |
| using | DArc = DGT::Arc |
| template<typename HeapTag , typename Graph > | |
| using | DijkstraFor = Dijkstra_Min_Paths< Graph, Dft_Dist< Graph >, Node_Arc_Iterator, Dft_Show_Arc< Graph >, HeapTag::template Heap > |
| template<typename HeapTag , typename Graph > | |
| using | DijkstraForAllArcs = Dijkstra_Min_Paths< Graph, Dft_Dist< Graph >, Out_Iterator_AllArcs, Dft_Show_Arc< Graph >, HeapTag::template Heap > |
| template<typename HeapTag > | |
| using | Dijkstra = DijkstraFor< HeapTag, GT > |
| template<typename HeapTag > | |
| using | DijkstraAllArcs = DijkstraForAllArcs< HeapTag, GT > |
| template<typename HeapTag > | |
| using | DigraphDijkstra = DijkstraFor< HeapTag, DGT > |
| using | HeapTypes = ::testing::Types< BinHeapTag, FibHeapTag > |
| using | IGT = List_Graph< Graph_Node< int >, Graph_Arc< int > > |
| template<typename HeapTag > | |
| using | Table_Dijkstra = Dijkstra_Min_Paths< IGT, Table_Distance, Node_Arc_Iterator, Dft_Show_Arc< IGT >, HeapTag::template Heap > |
Functions | |
| TYPED_TEST_SUITE (DijkstraHeapTest, HeapTypes) | |
| TYPED_TEST_SUITE (DijkstraDigraphHeapTest, HeapTypes) | |
| TYPED_TEST (DijkstraHeapTest, BasicShortestPath) | |
| TYPED_TEST (DijkstraHeapTest, PathToSelf) | |
| TYPED_TEST (DijkstraHeapTest, NoPathExists) | |
| TYPED_TEST (DijkstraHeapTest, ComputeSpanningTree) | |
| TYPED_TEST (DijkstraHeapTest, RelaxationUpdate) | |
| TYPED_TEST (DijkstraHeapTest, PaintSpanningTree) | |
| TYPED_TEST (DijkstraHeapTest, CopyPaintedMinPathsTree) | |
| TYPED_TEST (DijkstraHeapTest, SingleNodeGraph) | |
| TYPED_TEST (DijkstraHeapTest, LinearChainGraph) | |
| TYPED_TEST (DijkstraHeapTest, CompleteGraphK4) | |
| TYPED_TEST (DijkstraHeapTest, GraphWithSelfLoop) | |
| TYPED_TEST (DijkstraDigraphHeapTest, BasicPath) | |
| TYPED_TEST (DijkstraDigraphHeapTest, NoReturnPath) | |
| TYPED_TEST (DijkstraHeapTest, EmptyGraph) | |
| TYPED_TEST (DijkstraHeapTest, MultiplePathsSameCost) | |
| TYPED_TEST (DijkstraHeapTest, LargeWeights) | |
| TYPED_TEST (DijkstraHeapTest, ZeroWeightEdges) | |
| TYPED_TEST (DijkstraHeapTest, FractionalWeights) | |
| TYPED_TEST (DijkstraHeapTest, StarGraph) | |
| TYPED_TEST (DijkstraHeapTest, VerifyPathNodes) | |
| TYPED_TEST (DijkstraHeapTest, StateGetters) | |
| TYPED_TEST (DijkstraHeapTest, ComputePartialMinPathsTree) | |
| TYPED_TEST (DijkstraHeapTest, GetMinPathFromTree) | |
| TYPED_TEST (DijkstraHeapTest, NullNodeValidation) | |
| TYPED_TEST (DijkstraHeapTest, DisconnectedGraph) | |
| TYPED_TEST (DijkstraHeapTest, IntegerWeights) | |
| TYPED_TEST (DijkstraHeapTest, GetDistanceAfterPainting) | |
| TYPED_TEST (DijkstraHeapTest, GetDistanceBeforePainting) | |
| TYPED_TEST (DijkstraHeapTest, GetDistanceUnreachableNode) | |
| TYPED_TEST (DijkstraHeapTest, MultipleSuccessiveComputations) | |
| TYPED_TEST (DijkstraHeapTest, PaintPartialReturnsFalse) | |
| TYPED_TEST (DijkstraHeapTest, PaintPartialReturnsTrue) | |
| TYPED_TEST (DijkstraHeapTest, VeryLongPath) | |
| TYPED_TEST (DijkstraHeapTest, DenseGraphPerformance) | |
| TYPED_TEST (DijkstraHeapTest, ComputeSpanningTreeDisconnected) | |
| TYPED_TEST (DijkstraHeapTest, ParallelArcsChoosesMinimum) | |
| TYPED_TEST (DijkstraHeapTest, ParallelArcsBothDirections) | |
| TYPED_TEST (DijkstraHeapTest, ComplexMultigraph) | |
| TYPED_TEST (DijkstraHeapTest, GetMinPathFromTreeMethod) | |
| TYPED_TEST (DijkstraHeapTest, GetMinPathFromTreeMultipleQueries) | |
| TYPED_TEST (DijkstraHeapTest, UsesTheDistanceItWasGiven) | |
| TYPED_TEST (DijkstraHeapTest, TakesADistanceWithoutADefaultConstructor) | |
| TEST (DijkstraTotal, UsesTheDistanceItWasGiven) | |
| TEST (DijkstraTotal, WhatTheDistanceThrowsReachesTheCaller) | |
| TYPED_TEST (DijkstraHeapTest, CopyOfThePaintedTreeReturnsItsWeight) | |
| TYPED_TEST (DijkstraHeapTest, DistanceWithStateMatchesAnOracle) | |
| TYPED_TEST (DijkstraHeapTest, DistanceThatThrowsLeavesTheGraphReusable) | |
| TYPED_TEST (DijkstraHeapTest, OverflowLeavesTheGraphReusable) | |
| TYPED_TEST (DijkstraHeapTest, ComputingATreeForgetsThePainting) | |
| void | expect_mapped_to_graph (GT &tree) |
| TYPED_TEST (DijkstraHeapTest, TreeIsMappedToTheGraph) | |
| TYPED_TEST (DijkstraHeapTest, CopyOfThePaintedTreeIsMappedAndEndsThePainting) | |
| int | main (int argc, char **argv) |
GoogleTest suite for Dijkstra.H.
This file contains exhaustive tests to verify the correctness of Dijkstra's shortest path algorithm implementation in Aleph-w.
Tests for Test Dijkstra
Definition in file test_dijkstra.cc.
Definition at line 48 of file test_dijkstra.cc.
Definition at line 53 of file test_dijkstra.cc.
| using DGT = List_Digraph<Graph_Node<int>, Graph_Arc<double> > |
Definition at line 51 of file test_dijkstra.cc.
| using DigraphDijkstra = DijkstraFor<HeapTag, DGT> |
Definition at line 85 of file test_dijkstra.cc.
| using Dijkstra = DijkstraFor<HeapTag, GT> |
Definition at line 79 of file test_dijkstra.cc.
| using DijkstraAllArcs = DijkstraForAllArcs<HeapTag, GT> |
Definition at line 82 of file test_dijkstra.cc.
| using DijkstraFor = Dijkstra_Min_Paths<Graph, Dft_Dist<Graph>, Node_Arc_Iterator, Dft_Show_Arc<Graph>, HeapTag::template Heap> |
Definition at line 68 of file test_dijkstra.cc.
| using DijkstraForAllArcs = Dijkstra_Min_Paths<Graph, Dft_Dist<Graph>, Out_Iterator_AllArcs, Dft_Show_Arc<Graph>, HeapTag::template Heap> |
Definition at line 74 of file test_dijkstra.cc.
Definition at line 52 of file test_dijkstra.cc.
| using GT = List_Graph<Graph_Node<int>, Graph_Arc<double> > |
Definition at line 46 of file test_dijkstra.cc.
| using HeapTypes = ::testing::Types<BinHeapTag, FibHeapTag> |
Definition at line 93 of file test_dijkstra.cc.
| using IGT = List_Graph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 1002 of file test_dijkstra.cc.
Definition at line 47 of file test_dijkstra.cc.
| using Table_Dijkstra = Dijkstra_Min_Paths<IGT, Table_Distance, Node_Arc_Iterator, Dft_Show_Arc<IGT>, HeapTag::template Heap> |
Definition at line 1053 of file test_dijkstra.cc.
| void expect_mapped_to_graph | ( | GT & | tree | ) |
Definition at line 1472 of file test_dijkstra.cc.
Referenced by TYPED_TEST(), and TYPED_TEST().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1545 of file test_dijkstra.cc.
| TEST | ( | DijkstraTotal | , |
| UsesTheDistanceItWasGiven | |||
| ) |
Definition at line 1218 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | DijkstraTotal | , |
| WhatTheDistanceThrowsReachesTheCaller | |||
| ) |
Definition at line 1243 of file test_dijkstra.cc.
References Distance_Failure::fail_at, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraDigraphHeapTest | , |
| BasicPath | |||
| ) |
Definition at line 352 of file test_dijkstra.cc.
| TYPED_TEST | ( | DijkstraDigraphHeapTest | , |
| NoReturnPath | |||
| ) |
Definition at line 370 of file test_dijkstra.cc.
| TYPED_TEST | ( | DijkstraHeapTest | , |
| BasicShortestPath | |||
| ) |
Definition at line 98 of file test_dijkstra.cc.
References Aleph::Path< GT >::Iterator::get_current_node(), Aleph::Const_Iterator< It >::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Const_Iterator< It >::next().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| CompleteGraphK4 | |||
| ) |
Definition at line 313 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ComplexMultigraph | |||
| ) |
Definition at line 886 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ComputePartialMinPathsTree | |||
| ) |
Definition at line 556 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_partial_min_paths_tree(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ComputeSpanningTree | |||
| ) |
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ComputeSpanningTreeDisconnected | |||
| ) |
Definition at line 813 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ComputingATreeForgetsThePainting | |||
| ) |
Definition at line 1447 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_distance(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::is_painted(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| CopyOfThePaintedTreeIsMappedAndEndsThePainting | |||
| ) |
Definition at line 1519 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::copy_painted_min_paths_tree(), expect_mapped_to_graph(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_distance(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::is_painted(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| CopyOfThePaintedTreeReturnsItsWeight | |||
| ) |
Definition at line 1263 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::copy_painted_min_paths_tree(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| CopyPaintedMinPathsTree | |||
| ) |
Definition at line 257 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::copy_painted_min_paths_tree(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| DenseGraphPerformance | |||
| ) |
| TYPED_TEST | ( | DijkstraHeapTest | , |
| DisconnectedGraph | |||
| ) |
Definition at line 624 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| DistanceThatThrowsLeavesTheGraphReusable | |||
| ) |
Definition at line 1349 of file test_dijkstra.cc.
References Distance_Failure::calls, Distance_Failure::fail_at, k, m, OhashCommon< HashTbl, Key >::size(), w, and y.
| TYPED_TEST | ( | DijkstraHeapTest | , |
| DistanceWithStateMatchesAnOracle | |||
| ) |
Definition at line 1285 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), seed, and w.
| TYPED_TEST | ( | DijkstraHeapTest | , |
| EmptyGraph | |||
| ) |
Definition at line 389 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), and GraphCommon< GT, Node, Arc >::get_num_nodes().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| FractionalWeights | |||
| ) |
Definition at line 460 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetDistanceAfterPainting | |||
| ) |
Definition at line 664 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetDistanceBeforePainting | |||
| ) |
Definition at line 685 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_distance(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetDistanceUnreachableNode | |||
| ) |
Definition at line 696 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetMinPathFromTree | |||
| ) |
Definition at line 579 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetMinPathFromTreeMethod | |||
| ) |
Definition at line 918 of file test_dijkstra.cc.
References Aleph::DynList< T >::append(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), LocateFunctions< Container, Type >::get_it(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::Const_Iterator< It >::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Path< GT >::is_empty(), and Aleph::DynList< T >::size().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GetMinPathFromTreeMultipleQueries | |||
| ) |
Definition at line 965 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::size().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| GraphWithSelfLoop | |||
| ) |
Definition at line 336 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| IntegerWeights | |||
| ) |
Definition at line 645 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| LargeWeights | |||
| ) |
Definition at line 426 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| LinearChainGraph | |||
| ) |
Definition at line 294 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| MultiplePathsSameCost | |||
| ) |
Definition at line 402 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| MultipleSuccessiveComputations | |||
| ) |
Definition at line 712 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| NoPathExists | |||
| ) |
Definition at line 157 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| NullNodeValidation | |||
| ) |
Definition at line 608 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_partial_min_paths_tree(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_partial_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| OverflowLeavesTheGraphReusable | |||
| ) |
Definition at line 1406 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_partial_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::find_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::is_painted(), m, and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| PaintPartialReturnsFalse | |||
| ) |
| TYPED_TEST | ( | DijkstraHeapTest | , |
| PaintPartialReturnsTrue | |||
| ) |
Definition at line 751 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_partial_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| PaintSpanningTree | |||
| ) |
Definition at line 232 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Path< GT >::is_empty(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ParallelArcsBothDirections | |||
| ) |
Definition at line 862 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ParallelArcsChoosesMinimum | |||
| ) |
Definition at line 834 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| PathToSelf | |||
| ) |
Definition at line 141 of file test_dijkstra.cc.
References Aleph::Path< GT >::get_first_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::size().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| RelaxationUpdate | |||
| ) |
Definition at line 201 of file test_dijkstra.cc.
References Aleph::Path< GT >::Iterator::get_current_node(), Aleph::Const_Iterator< It >::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Const_Iterator< It >::next().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| SingleNodeGraph | |||
| ) |
Definition at line 281 of file test_dijkstra.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| StarGraph | |||
| ) |
| TYPED_TEST | ( | DijkstraHeapTest | , |
| StateGetters | |||
| ) |
Definition at line 532 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_graph(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::get_start_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::has_computation(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::is_painted(), and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| TakesADistanceWithoutADefaultConstructor | |||
| ) |
Definition at line 1186 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| TreeIsMappedToTheGraph | |||
| ) |
Definition at line 1494 of file test_dijkstra.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_min_paths_tree(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::compute_partial_min_paths_tree(), expect_mapped_to_graph(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| UsesTheDistanceItWasGiven | |||
| ) |
Definition at line 1142 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| VerifyPathNodes | |||
| ) |
Definition at line 499 of file test_dijkstra.cc.
References Aleph::DynList< T >::append(), LocateFunctions< Container, Type >::get_it(), Aleph::Const_Iterator< It >::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::DynList< T >::size().
| TYPED_TEST | ( | DijkstraHeapTest | , |
| VeryLongPath | |||
| ) |
Definition at line 772 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), N, and nodes.
| TYPED_TEST | ( | DijkstraHeapTest | , |
| ZeroWeightEdges | |||
| ) |
Definition at line 443 of file test_dijkstra.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST_SUITE | ( | DijkstraDigraphHeapTest | , |
| HeapTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | DijkstraHeapTest | , |
| HeapTypes | |||
| ) |