|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
GoogleTest suite for Bellman_Ford.H. More...
#include <gtest/gtest.h>#include <limits>#include <stdexcept>#include <Bellman_Ford.H>#include <tpl_graph.H>Go to the source code of this file.
Classes | |
| struct | Scaled_Distance |
| struct | Tolerant_Dist |
| struct | Tolerant_Int_Dist< G > |
Typedefs | |
| using | GT = List_Digraph< Graph_Node< int >, Graph_Arc< int > > |
| using | Node = GT::Node |
| using | Arc = GT::Arc |
| using | DGT = List_Digraph< Graph_Node< int >, Graph_Arc< double > > |
| using | UGT = List_Digraph< Graph_Node< int >, Graph_Arc< unsigned > > |
Functions | |
| TEST (BellmanFordTest, SimpleGraphNoNegativeCycles) | |
| TEST (BellmanFordTest, GraphWithNegativeCycle) | |
| TEST (BellmanFordTest, SpanningTreePainting) | |
| TEST (BellmanFordTest, FasterVersion) | |
| TEST (BellmanFordTest, NegativeCycleDetectionFull) | |
| TEST (BellmanFordTest, SearchNegativeCycleWithParams) | |
| TEST (BellmanFordTest, TrivialGraphNoNegativeCycles) | |
| TEST (BellmanFordTest, GraphWithZeroWeights) | |
| TEST (BellmanFordTest, DisconnectedGraph) | |
| TEST (BellmanFordTest, NegativeWeightsNoCycle) | |
| TEST (BellmanFordTest, LargeGraphNoNegativeCycle) | |
| TEST (BellmanFordTest, ComplexNegativeCycle) | |
| TEST (BellmanFordTest, NegativeCycleWithOutputParameter) | |
| TEST (BellmanFordTest, SearchNegativeCycleNoStartNode) | |
| TEST (BellmanFordTest, NegativeCycleFunctor) | |
| TEST (BellmanFordTest, NegativeSelfLoop) | |
| TEST (BellmanFordTest, AllNegativeWeightsNoCycle) | |
| TEST (BellmanFordTest, NullptrValidation) | |
| TEST (BellmanFordTest, CompletelyEmptyGraph) | |
| TEST (BellmanFordTest, BuildTreeFromSpanningTree) | |
| TEST (BellmanFordTest, ExtractMinSpanningTree) | |
| TEST (BellmanFordTest, ComputeNodesWeightsJohnson) | |
| TEST (BellmanFordTest, ComputeNodesWeightsWithNegativeCycle) | |
| TEST (BellmanFordTest, HasNegativeCycleNoStartNode) | |
| TEST (BellmanFordTest, NegativeCycleNoParams) | |
| TEST (BellmanFordTest, GetMinPath) | |
| TEST (BellmanFordTest, GetMinPathToAllNodes) | |
| TEST (BellmanFordTest, ExtractMinSpanningTreeValidation) | |
| TEST (BellmanFordTest, BuildTreeWithMapping) | |
| TEST (BellmanFordTest, ComputeNodesWeightsValues) | |
| TEST (BellmanFordTest, NegativeCycleFunctorVariant1) | |
| TEST (BellmanFordTest, NegativeCycleFunctorWithStartNode) | |
| TEST (BellmanFordTest, SearchNegativeCycleWithDifferentItFactors) | |
| TEST (BellmanFordTest, EmptyGraphEdgeCase) | |
| TEST (BellmanFordTest, LargeGraphPerformance) | |
| TEST (BellmanFordTest, StateGetters) | |
| TEST (BellmanFordTest, GetMinPathWithoutPainting) | |
| TEST (BellmanFordTest, NegativeCyclePathValidity) | |
| TEST (BellmanFordTest, SingleNodePositiveSelfLoop) | |
| TEST (BellmanFordTest, CycleClosedByTheCheckingPassIsReturned) | |
| TEST (BellmanFordTest, FasterVersionWithNegativeCycle) | |
| TEST (BellmanFordTest, SearchNegativeCycleDoubleOverload) | |
| TEST (BellmanFordTest, SearchNegativeCycleNoParamsVariant) | |
| TEST (BellmanFordTest, BuildTreeWithoutPriorPainting) | |
| TEST (BellmanFordTest, MultiplePaintCalls) | |
| TEST (BellmanFordTest, FunctorDifferentSignatures) | |
| TEST (BellmanFordTest, StronglyConnectedWithNegativeCycle) | |
| TEST (BellmanFordTest, VeryLongChainPerformance) | |
| TEST (BellmanFordTest, BidirectionalEdges) | |
| TEST (BellmanFordTest, UnreachableNode) | |
| TEST (BellmanFordTest, DenseGraph) | |
| TEST (BellmanFordTest, GetDistance) | |
| TEST (BellmanFordTest, GetDistanceWithoutPainting) | |
| TEST (BellmanFordTest, GetDistanceUnreachableNode) | |
| TEST (BellmanFordTest, ExtractMinSpanningTreeWithoutPainting) | |
| TEST (BellmanFordTest, GetDistanceNullNode) | |
| TEST (BellmanFordTest, GetDistanceConsistentWithGetMinPath) | |
| TEST (BellmanFordTest, ParallelArcsChoosesMinimum) | |
| TEST (BellmanFordTest, ParallelArcsNegativeWeights) | |
| TEST (BellmanFordTest, ComplexMultigraph) | |
| TEST (BellmanFordTest, ParallelArcsNegativeCycle) | |
| TEST (BellmanFordTest, GetMinPathUsesTheDistanceItWasGiven) | |
| TEST (BellmanFordTest, ANegativeCycleBeyondMaxThrowsFromTheStart) | |
| TEST (BellmanFordTest, ATolerantDistanceTakesNoCycleWithinItsTolerance) | |
| TEST (BellmanFordTest, AnUnsignedToleranceDoesNotWrapAround) | |
| TEST (BellmanFordTest, AnIntegerToleranceLeavesNoNodeWithoutADistance) | |
| TEST (BellmanFordTest, ASignedToleranceDoesNotOverflow) | |
| int | main (int argc, char **argv) |
GoogleTest suite for Bellman_Ford.H.
This file contains exhaustive tests to verify the correctness of the Bellman-Ford algorithm implementation in Aleph-w.
Tests for Test Bellman Ford
Definition in file test_bellman_ford.cc.
Definition at line 26 of file test_bellman_ford.cc.
| using DGT = List_Digraph<Graph_Node<int>, Graph_Arc<double> > |
Definition at line 1537 of file test_bellman_ford.cc.
| using GT = List_Digraph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 24 of file test_bellman_ford.cc.
Definition at line 25 of file test_bellman_ford.cc.
| using UGT = List_Digraph<Graph_Node<int>, Graph_Arc<unsigned> > |
Definition at line 1587 of file test_bellman_ford.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1661 of file test_bellman_ford.cc.
| TEST | ( | BellmanFordTest | , |
| AllNegativeWeightsNoCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| ANegativeCycleBeyondMaxThrowsFromTheStart | |||
| ) |
Definition at line 1508 of file test_bellman_ford.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | BellmanFordTest | , |
| AnIntegerToleranceLeavesNoNodeWithoutADistance | |||
| ) |
Definition at line 1616 of file test_bellman_ford.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and max().
| TEST | ( | BellmanFordTest | , |
| AnUnsignedToleranceDoesNotWrapAround | |||
| ) |
Definition at line 1592 of file test_bellman_ford.cc.
References w.
| TEST | ( | BellmanFordTest | , |
| ASignedToleranceDoesNotOverflow | |||
| ) |
Definition at line 1637 of file test_bellman_ford.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | BellmanFordTest | , |
| ATolerantDistanceTakesNoCycleWithinItsTolerance | |||
| ) |
Definition at line 1553 of file test_bellman_ford.cc.
| TEST | ( | BellmanFordTest | , |
| BidirectionalEdges | |||
| ) |
Definition at line 1156 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| BuildTreeFromSpanningTree | |||
| ) |
Definition at line 442 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::build_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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| BuildTreeWithMapping | |||
| ) |
Definition at line 679 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::build_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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| BuildTreeWithoutPriorPainting | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| CompletelyEmptyGraph | |||
| ) |
Definition at line 429 of file test_bellman_ford.cc.
References Aleph::has_cycle(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| ComplexMultigraph | |||
| ) |
Definition at line 1419 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| ComplexNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| ComputeNodesWeightsJohnson | |||
| ) |
Definition at line 501 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::compute_nodes_weights(), 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().
| TEST | ( | BellmanFordTest | , |
| ComputeNodesWeightsValues | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| ComputeNodesWeightsWithNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| CycleClosedByTheCheckingPassIsReturned | |||
| ) |
Definition at line 930 of file test_bellman_ford.cc.
References Aleph::Path< GT >::for_each_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Path< GT >::is_cycle(), Aleph::Path< GT >::is_empty(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::test_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| DenseGraph | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| DisconnectedGraph | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| EmptyGraphEdgeCase | |||
| ) |
Definition at line 811 of file test_bellman_ford.cc.
References Aleph::has_cycle(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| ExtractMinSpanningTree | |||
| ) |
Definition at line 470 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::extract_min_spanning_tree(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree(), and Aleph::DynArray< T >::size().
| TEST | ( | BellmanFordTest | , |
| ExtractMinSpanningTreeValidation | |||
| ) |
Definition at line 642 of file test_bellman_ford.cc.
References arcs, Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::extract_min_spanning_tree(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| ExtractMinSpanningTreeWithoutPainting | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| FasterVersion | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| FasterVersionWithNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| FunctorDifferentSignatures | |||
| ) |
Definition at line 1078 of file test_bellman_ford.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().
| TEST | ( | BellmanFordTest | , |
| GetDistance | |||
| ) |
Definition at line 1224 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetDistanceConsistentWithGetMinPath | |||
| ) |
Definition at line 1333 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_distance(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetDistanceNullNode | |||
| ) |
Definition at line 1313 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetDistanceUnreachableNode | |||
| ) |
Definition at line 1272 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_distance(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetDistanceWithoutPainting | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| GetMinPath | |||
| ) |
Definition at line 583 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::Path< GT >::Iterator::has_current_node(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetMinPathToAllNodes | |||
| ) |
Definition at line 616 of file test_bellman_ford.cc.
References dist2(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| GetMinPathUsesTheDistanceItWasGiven | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| GetMinPathWithoutPainting | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| GraphWithNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| GraphWithZeroWeights | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| HasNegativeCycleNoStartNode | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| LargeGraphNoNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| LargeGraphPerformance | |||
| ) |
Definition at line 821 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), N, nodes, and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| MultiplePaintCalls | |||
| ) |
Definition at line 1040 of file test_bellman_ford.cc.
References dist2(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_start_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::is_painted(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| NegativeCycleDetectionFull | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| NegativeCycleFunctor | |||
| ) |
Definition at line 338 of file test_bellman_ford.cc.
References Aleph::has_cycle(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TEST | ( | BellmanFordTest | , |
| NegativeCycleFunctorVariant1 | |||
| ) |
Definition at line 744 of file test_bellman_ford.cc.
References Aleph::has_cycle(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TEST | ( | BellmanFordTest | , |
| NegativeCycleFunctorWithStartNode | |||
| ) |
Definition at line 765 of file test_bellman_ford.cc.
References Aleph::has_cycle(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Path< GT >::is_empty().
| TEST | ( | BellmanFordTest | , |
| NegativeCycleNoParams | |||
| ) |
Definition at line 563 of file test_bellman_ford.cc.
References Aleph::has_cycle(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::test_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| NegativeCyclePathValidity | |||
| ) |
Definition at line 891 of file test_bellman_ford.cc.
References Aleph::Path< GT >::Iterator::has_current_node(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::test_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| NegativeCycleWithOutputParameter | |||
| ) |
Definition at line 295 of file test_bellman_ford.cc.
References Aleph::has_cycle(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::test_negative_cycle().
| TEST | ( | BellmanFordTest | , |
| NegativeSelfLoop | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| NegativeWeightsNoCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| NullptrValidation | |||
| ) |
Definition at line 394 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::faster_paint_spanning_tree(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_negative_cycle(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| ParallelArcsChoosesMinimum | |||
| ) |
Definition at line 1360 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| ParallelArcsNegativeCycle | |||
| ) |
Definition at line 1454 of file test_bellman_ford.cc.
References 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| ParallelArcsNegativeWeights | |||
| ) |
Definition at line 1391 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), 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::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| SearchNegativeCycleDoubleOverload | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SearchNegativeCycleNoParamsVariant | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SearchNegativeCycleNoStartNode | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SearchNegativeCycleWithDifferentItFactors | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SearchNegativeCycleWithParams | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SimpleGraphNoNegativeCycles | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SingleNodePositiveSelfLoop | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| SpanningTreePainting | |||
| ) |
Definition at line 70 of file test_bellman_ford.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), IS_ARC_VISITED, Aleph::Filter_Iterator< Container, It, Show_Item >::next(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree(), and Aleph::Spanning_Tree.
| TEST | ( | BellmanFordTest | , |
| StateGetters | |||
| ) |
Definition at line 848 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_graph(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_start_node(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_computation(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::is_painted(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| StronglyConnectedWithNegativeCycle | |||
| ) |
| TEST | ( | BellmanFordTest | , |
| TrivialGraphNoNegativeCycles | |||
| ) |
Definition at line 174 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_negative_cycle(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | BellmanFordTest | , |
| UnreachableNode | |||
| ) |
Definition at line 1177 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().
| TEST | ( | BellmanFordTest | , |
| VeryLongChainPerformance | |||
| ) |
Definition at line 1132 of file test_bellman_ford.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::get_min_path(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), N, nodes, and Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::paint_spanning_tree().