Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
latex_floyd_test.cc File Reference

Comprehensive tests for Floyd-Warshall algorithm (latex_floyd.H) More...

#include <gtest/gtest.h>
#include <sstream>
#include <fstream>
#include <limits>
#include <cmath>
#include <tpl_graph.H>
#include <tpl_matgraph.H>
#include <latex_floyd.H>
Include dependency graph for latex_floyd_test.cc:

Go to the source code of this file.

Classes

struct  DistanceArc
 Arc info type with required Distance_Type and constants. More...
 
struct  IntDistanceArc
 Integer distance arc type. More...
 
class  FloydSimpleGraphTest
 Test fixture with a simple weighted graph. More...
 
class  FloydIntGraphTest
 Test fixture with integer weights. More...
 
struct  TestIndexFormatter< Mat >
 Index formatter: takes matrix and index, returns string. More...
 
struct  TestPathFormatter< Mat >
 Path formatter: takes matrix, i, j indices, returns formatted entry. More...
 
struct  TestDistFormatter< Mat >
 Distance formatter: takes matrix, i, j indices, returns formatted entry. More...
 
struct  MaxCompare
 
struct  MinPlus
 

Functions

 TEST_F (FloydSimpleGraphTest, DiagonalIsZero)
 
 TEST_F (FloydSimpleGraphTest, DirectEdgeDistance)
 
 TEST_F (FloydSimpleGraphTest, ShortestPathOverMultipleEdges)
 
 TEST_F (FloydSimpleGraphTest, ShortestPathToLastNode)
 
 TEST_F (FloydSimpleGraphTest, UnreachableNodesHaveInfinity)
 
 TEST_F (FloydIntGraphTest, SymmetricGraph)
 
 TEST_F (FloydIntGraphTest, ShortcutUsed)
 
 TEST_F (FloydSimpleGraphTest, PathReconstructionSameNode)
 
 TEST_F (FloydSimpleGraphTest, PathReconstructionDirectEdge)
 
 TEST_F (FloydSimpleGraphTest, PathReconstructionMultipleEdges)
 
 TEST_F (FloydIntGraphTest, LatexOutputContainsBeginFigure)
 
 TEST_F (FloydIntGraphTest, LatexOutputContainsMatrices)
 
 TEST_F (FloydIntGraphTest, LatexOutputHasCorrectNumberOfIterations)
 
 TEST (SingleNodeTest, FloydOnSingleNode)
 
 TEST (TwoNodeTest, FloydOnTwoNodes)
 
 TEST (DisconnectedGraphTest, FloydOnDisconnectedGraph)
 
 TEST (DisconnectedGraphTest, UnreachableStaysInfinityWithNegativeEdges)
 
 TEST (CompleteGraphTest, FloydOnCompleteGraph)
 
 TEST (CustomSemiringTest, MaxMinSemiring)
 
 TEST (StressTest, FloydOnLargerGraph)
 
 TEST_F (FloydIntGraphTest, PathMatrixPointsToNextHop)
 
 TEST_F (FloydSimpleGraphTest, DistanceMatrixTriangleInequality)
 
 TEST_F (FloydIntGraphTest, InitializationSetsEdgeWeightsCorrectly)
 
 TEST (NegativeWeightsTest, FloydWithNegativeWeights)
 
 TEST (DenseGraphTest, FloydOnDenseGraph)
 

Detailed Description

Comprehensive tests for Floyd-Warshall algorithm (latex_floyd.H)

Tests cover:

Definition in file latex_floyd_test.cc.

Function Documentation

◆ TEST() [1/9]

◆ TEST() [2/9]

◆ TEST() [3/9]

◆ TEST() [4/9]

◆ TEST() [5/9]

◆ TEST() [6/9]

◆ TEST() [7/9]

TEST ( SingleNodeTest  ,
FloydOnSingleNode   
)

◆ TEST() [8/9]

◆ TEST() [9/9]

◆ TEST_F() [1/16]

TEST_F ( FloydIntGraphTest  ,
InitializationSetsEdgeWeightsCorrectly   
)

◆ TEST_F() [2/16]

TEST_F ( FloydIntGraphTest  ,
LatexOutputContainsBeginFigure   
)

◆ TEST_F() [3/16]

TEST_F ( FloydIntGraphTest  ,
LatexOutputContainsMatrices   
)

◆ TEST_F() [4/16]

TEST_F ( FloydIntGraphTest  ,
LatexOutputHasCorrectNumberOfIterations   
)

◆ TEST_F() [5/16]

◆ TEST_F() [6/16]

TEST_F ( FloydIntGraphTest  ,
ShortcutUsed   
)

◆ TEST_F() [7/16]

TEST_F ( FloydIntGraphTest  ,
SymmetricGraph   
)

◆ TEST_F() [8/16]

TEST_F ( FloydSimpleGraphTest  ,
DiagonalIsZero   
)

◆ TEST_F() [9/16]

TEST_F ( FloydSimpleGraphTest  ,
DirectEdgeDistance   
)

◆ TEST_F() [10/16]

TEST_F ( FloydSimpleGraphTest  ,
DistanceMatrixTriangleInequality   
)

◆ TEST_F() [11/16]

◆ TEST_F() [12/16]

◆ TEST_F() [13/16]

◆ TEST_F() [14/16]

TEST_F ( FloydSimpleGraphTest  ,
ShortestPathOverMultipleEdges   
)

◆ TEST_F() [15/16]

TEST_F ( FloydSimpleGraphTest  ,
ShortestPathToLastNode   
)

◆ TEST_F() [16/16]

TEST_F ( FloydSimpleGraphTest  ,
UnreachableNodesHaveInfinity   
)