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

Comprehensive tests for Zero_One_BFS.H. More...

#include <gtest/gtest.h>
#include <Zero_One_BFS.H>
#include <Dijkstra.H>
#include <tpl_graph.H>
#include <tpl_sgraph.H>
#include <tpl_agraph.H>
Include dependency graph for test_zero_one_bfs.cc:

Go to the source code of this file.

Typedefs

using GT = List_Graph< Graph_Node< int >, Graph_Arc< int > >
 
using Node = GT::Node
 
using Arc = GT::Arc
 
using DGT = List_Digraph< Graph_Node< int >, Graph_Arc< int > >
 
using DNode = DGT::Node
 
using DArc = DGT::Arc
 

Functions

 TEST (ZeroOneBFS, BasicShortestPath)
 
 TEST (ZeroOneBFS, AllZeroWeights)
 
 TEST (ZeroOneBFS, AllOneWeights)
 
 TEST (ZeroOneBFS, PathToSelf)
 
 TEST (ZeroOneBFS, NoPathExists)
 
 TEST (ZeroOneBFS, SingleNode)
 
 TEST (ZeroOneBFS, LinearChain)
 
 TEST (ZeroOneBFS, ZeroWeightShortcut)
 
 TEST (ZeroOneBFS, NullNodeValidation)
 
 TEST (ZeroOneBFS, EmptyGraphValidation)
 
 TEST (ZeroOneBFS, InvalidWeightValidation)
 
 TEST (ZeroOneBFS, PaintAndGetMinPath)
 
 TEST (ZeroOneBFS, GetDistanceAfterPainting)
 
 TEST (ZeroOneBFS, GetDistanceBeforePainting)
 
 TEST (ZeroOneBFS, PathNodeVerification)
 
 TEST (ZeroOneBFS, CompleteGraphK4)
 
 TEST (ZeroOneBFS, GraphWithCycle)
 
 TEST (ZeroOneBFS, DigraphBasic)
 
 TEST (ZeroOneBFS, DigraphNoReversePath)
 
 TEST (ZeroOneBFS, MultipleComputations)
 
 TEST (ZeroOneBFS, LargeLinearGraph)
 
 TEST (ZeroOneBFS, CrossValidationWithDijkstra)
 
 TEST (ZeroOneBFS, StarGraph)
 
 TEST (ZeroOneBFS, GridExample)
 
 TEST (ZeroOneBFS, TwoNodeZeroWeight)
 
 TEST (ZeroOneBFS, TwoNodeOneWeight)
 
 TEST (ZeroOneBFS, NegativeWeightValidation)
 
 TEST (ZeroOneBFS, StateGetters)
 
 TEST (ZeroOneBFS, DisconnectedPainting)
 
 TEST (ZeroOneBFS, LargeGraphManyZeros)
 
 TEST (ZeroOneBFS, ParallelEdgesKeepSingleParentArcMarked)
 
 TEST (ZeroOneBFS, DestructorRestoresGraphState)
 

Detailed Description

Comprehensive tests for Zero_One_BFS.H.

Tests cover correctness, edge cases, validation, and cross-checks against Dijkstra's algorithm for 0-1 weighted graphs.

Definition in file test_zero_one_bfs.cc.

Typedef Documentation

◆ Arc

using Arc = GT::Arc

Definition at line 25 of file test_zero_one_bfs.cc.

◆ DArc

using DArc = DGT::Arc

Definition at line 30 of file test_zero_one_bfs.cc.

◆ DGT

using DGT = List_Digraph<Graph_Node<int>, Graph_Arc<int> >

Definition at line 28 of file test_zero_one_bfs.cc.

◆ DNode

using DNode = DGT::Node

Definition at line 29 of file test_zero_one_bfs.cc.

◆ GT

using GT = List_Graph<Graph_Node<int>, Graph_Arc<int> >

Definition at line 23 of file test_zero_one_bfs.cc.

◆ Node

using Node = GT::Node

Definition at line 24 of file test_zero_one_bfs.cc.

Function Documentation

◆ TEST() [1/32]

◆ TEST() [2/32]

◆ TEST() [3/32]

◆ TEST() [4/32]

◆ TEST() [5/32]

◆ TEST() [6/32]

◆ TEST() [7/32]

TEST ( ZeroOneBFS  ,
DigraphBasic   
)

Definition at line 413 of file test_zero_one_bfs.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [8/32]

TEST ( ZeroOneBFS  ,
DigraphNoReversePath   
)

Definition at line 433 of file test_zero_one_bfs.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [9/32]

◆ TEST() [10/32]

TEST ( ZeroOneBFS  ,
EmptyGraphValidation   
)

◆ TEST() [11/32]

◆ TEST() [12/32]

◆ TEST() [13/32]

◆ TEST() [14/32]

◆ TEST() [15/32]

◆ TEST() [16/32]

◆ TEST() [17/32]

◆ TEST() [18/32]

◆ TEST() [19/32]

◆ TEST() [20/32]

◆ TEST() [21/32]

◆ TEST() [22/32]

TEST ( ZeroOneBFS  ,
NullNodeValidation   
)

◆ TEST() [23/32]

◆ TEST() [24/32]

◆ TEST() [25/32]

◆ TEST() [26/32]

◆ TEST() [27/32]

TEST ( ZeroOneBFS  ,
SingleNode   
)

◆ TEST() [28/32]

◆ TEST() [29/32]

◆ TEST() [30/32]

◆ TEST() [31/32]

◆ TEST() [32/32]