Base class for a variety of graph based benchmark.
More...
#include <GraphBenchmark.h>
Base class for a variety of graph based benchmark.
This class is not meant to be used directly by students.
◆ GraphBenchmark()
bridges::benchmark::GraphBenchmark::GraphBenchmark |
( |
| ) |
|
|
inlineprotected |
◆ countEdges()
template<typename GraphType >
long bridges::benchmark::GraphBenchmark::countEdges |
( |
const GraphType & |
gr | ) |
|
|
inlineprotected |
◆ countVertices()
template<typename GraphType >
long bridges::benchmark::GraphBenchmark::countVertices |
( |
const GraphType & |
gr | ) |
|
|
inlineprotected |
◆ generateWikidataMovieActor()
std::tuple<long, long> bridges::benchmark::GraphBenchmark::generateWikidataMovieActor |
( |
int |
yearmin, |
|
|
int |
yearmax, |
|
|
GraphAdjList< std::string > & |
moviegraph |
|
) |
| |
|
inlineprotected |
- Returns
- a triplet: the graph, the number of vertices, and the number of edges
◆ getTimeCap()
double bridges::benchmark::GraphBenchmark::getTimeCap |
( |
| ) |
const |
|
inline |
Return time limit of a run.
The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the alloted time, but that will be the last run.
- Returns
- the time upper bound (in seconds) of a particular run.
◆ highestDegreeVertex()
std::string bridges::benchmark::GraphBenchmark::highestDegreeVertex |
( |
GraphAdjList< std::string > & |
gr | ) |
|
|
inlineprotected |
◆ setTimeCap()
void bridges::benchmark::GraphBenchmark::setTimeCap |
( |
double |
cap_in_s | ) |
|
|
inline |
sets an upper bound to the time of a run.
The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the alloted time, but that will be the last run.
- Parameters
-
cap_in_s | time limit in seconds |
◆ time_cap
double bridges::benchmark::GraphBenchmark::time_cap |
|
protected |
The documentation for this class was generated from the following file: