Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
JohnsonTest Class Reference
Inheritance diagram for JohnsonTest:
[legend]
Collaboration diagram for JohnsonTest:
[legend]

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void createPathGraph (int n, double weight=1.0)
 
void createCompleteGraph (int n, double minWeight=1.0, double maxWeight=10.0, unsigned seed=42)
 
void createNegativeWeightGraph ()
 
void createNegativeCycleGraph ()
 
void createSparseGraph (int n, double edgeProbability=0.2, double minWeight=1.0, double maxWeight=10.0, unsigned seed=42)
 
std::map< std::pair< int, int >, doublecomputeFloydWarshall ()
 

Protected Attributes

TestDigraph g
 
std::vector< Node * > nodes
 

Detailed Description

Definition at line 108 of file johnson_test.cc.

Member Function Documentation

◆ computeFloydWarshall()

std::map< std::pair< int, int >, double > JohnsonTest::computeFloydWarshall ( )
inlineprotected

◆ createCompleteGraph()

void JohnsonTest::createCompleteGraph ( int  n,
double  minWeight = 1.0,
double  maxWeight = 10.0,
unsigned  seed = 42 
)
inlineprotected

Definition at line 137 of file johnson_test.cc.

References g, Aleph::maps(), and nodes.

◆ createNegativeCycleGraph()

void JohnsonTest::createNegativeCycleGraph ( )
inlineprotected

Definition at line 177 of file johnson_test.cc.

References g, and nodes.

◆ createNegativeWeightGraph()

void JohnsonTest::createNegativeWeightGraph ( )
inlineprotected

Definition at line 154 of file johnson_test.cc.

References g, and nodes.

◆ createPathGraph()

void JohnsonTest::createPathGraph ( int  n,
double  weight = 1.0 
)
inlineprotected

Definition at line 126 of file johnson_test.cc.

References g, and nodes.

◆ createSparseGraph()

void JohnsonTest::createSparseGraph ( int  n,
double  edgeProbability = 0.2,
double  minWeight = 1.0,
double  maxWeight = 10.0,
unsigned  seed = 42 
)
inlineprotected

Definition at line 189 of file johnson_test.cc.

References g, Aleph::maps(), and nodes.

◆ SetUp()

void JohnsonTest::SetUp ( )
inlineoverrideprotected

Definition at line 114 of file johnson_test.cc.

References nodes.

◆ TearDown()

void JohnsonTest::TearDown ( )
inlineoverrideprotected

Definition at line 120 of file johnson_test.cc.

Member Data Documentation

◆ g

◆ nodes


The documentation for this class was generated from the following file: