|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for K_Shortest_Paths.H (Yen / Eppstein-style API). More...
#include <gtest/gtest.h>#include <algorithm>#include <chrono>#include <cstdlib>#include <functional>#include <limits>#include <random>#include <stdexcept>#include <string>#include <tuple>#include <utility>#include <K_Shortest_Paths.H>#include <tpl_array.H>#include <tpl_dynArray.H>#include <tpl_graph.H>#include <tpl_olhash.H>Go to the source code of this file.
Functions | |
| TEST (KShortestPathsTest, YenKnownGraphProducesExpectedCosts) | |
| TEST (KShortestPathsTest, EppsteinApiMatchesYenOnKnownGraph) | |
| TEST (KShortestPathsTest, EppsteinCanReturnCyclicAlternatives) | |
| TEST (KShortestPathsTest, SourceEqualsTargetReturnsTrivialPath) | |
| TEST (KShortestPathsTest, UnreachableReturnsEmpty) | |
| TEST (KShortestPathsTest, NegativeWeightsThrowDomainError) | |
| TEST (KShortestPathsTest, RandomSmallGraphsMatchExactOracle) | |
| TEST (KShortestPathsTest, ReturnedPathsAreSimpleAndNonDecreasingCost) | |
| TEST (KShortestPathsTest, EppsteinResultsAreNonDecreasingCost) | |
| TEST (KShortestPathsTest, SelfLoopAndParallelArcs) | |
| TEST (KShortestPathsTest, EppsteinLeavesOutTheWalksWhoseCostDoesNotFit) | |
| TEST (KShortestPathsTest, APathOfExactlyMaxIsGiven) | |
| TEST (KShortestPathsTest, YenGoesOnPastASpurNodeBeyondMax) | |
| TEST (KShortestPathsTest, EppsteinTakesAHeavyParallelArcOfTheTree) | |
| TEST (KShortestPathsTest, EppsteinLeavesOutOfItsIndexANodeBeyondMax) | |
| TEST (KShortestPathsTest, AnOverflowErrorOfTheDistanceOrOfTheFilterPassesOn) | |
| TEST (KShortestPathsTest, PerfRegression) | |
Tests for K_Shortest_Paths.H (Yen / Eppstein-style API).
Definition in file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| AnOverflowErrorOfTheDistanceOrOfTheFilterPassesOn | |||
| ) |
Definition at line 769 of file k_shortest_paths_test.cc.
References Aleph::eppstein_k_shortest_paths(), Aleph::filter(), Distance::operator()(), and Aleph::yen_k_shortest_paths().
| TEST | ( | KShortestPathsTest | , |
| APathOfExactlyMaxIsGiven | |||
| ) |
Definition at line 617 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| EppsteinApiMatchesYenOnKnownGraph | |||
| ) |
Definition at line 328 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| EppsteinCanReturnCyclicAlternatives | |||
| ) |
Definition at line 350 of file k_shortest_paths_test.cc.
References nodes.
| TEST | ( | KShortestPathsTest | , |
| EppsteinLeavesOutOfItsIndexANodeBeyondMax | |||
| ) |
Definition at line 716 of file k_shortest_paths_test.cc.
References y.
| TEST | ( | KShortestPathsTest | , |
| EppsteinLeavesOutTheWalksWhoseCostDoesNotFit | |||
| ) |
Definition at line 577 of file k_shortest_paths_test.cc.
References h, and Aleph::size().
| TEST | ( | KShortestPathsTest | , |
| EppsteinResultsAreNonDecreasingCost | |||
| ) |
Definition at line 491 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| EppsteinTakesAHeavyParallelArcOfTheTree | |||
| ) |
Definition at line 682 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| NegativeWeightsThrowDomainError | |||
| ) |
Definition at line 407 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| PerfRegression | |||
| ) |
Definition at line 875 of file k_shortest_paths_test.cc.
References rng.
| TEST | ( | KShortestPathsTest | , |
| RandomSmallGraphsMatchExactOracle | |||
| ) |
Definition at line 423 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| ReturnedPathsAreSimpleAndNonDecreasingCost | |||
| ) |
Definition at line 469 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| SelfLoopAndParallelArcs | |||
| ) |
Definition at line 512 of file k_shortest_paths_test.cc.
References nodes.
| TEST | ( | KShortestPathsTest | , |
| SourceEqualsTargetReturnsTrivialPath | |||
| ) |
Definition at line 375 of file k_shortest_paths_test.cc.
References nodes.
| TEST | ( | KShortestPathsTest | , |
| UnreachableReturnsEmpty | |||
| ) |
Definition at line 394 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| YenGoesOnPastASpurNodeBeyondMax | |||
| ) |
Definition at line 654 of file k_shortest_paths_test.cc.
| TEST | ( | KShortestPathsTest | , |
| YenKnownGraphProducesExpectedCosts | |||
| ) |
Definition at line 307 of file k_shortest_paths_test.cc.