Bridges-C++
3.4.4
Bridges(C++ API)
|
#include <GraphBenchmark.h>
Base class for a variety of graph based benchmark.
This class is not meant to be used directly by students.
Public Member Functions | |
void | setTimeCap (double cap_in_s) |
sets an upper bound to the time of a run. More... | |
double | getTimeCap () const |
Return time limit of a run. More... | |
Protected Member Functions | |
GraphBenchmark () | |
std::tuple< long, long > | generateWikidataMovieActor (int yearmin, int yearmax, GraphAdjList< std::string > &moviegraph) |
std::string | highestDegreeVertex (GraphAdjList< std::string > &gr) |
template<typename GraphType > | |
long | countVertices (const GraphType &gr) |
template<typename GraphType > | |
long | countEdges (const GraphType &gr) |
Protected Attributes | |
double | time_cap |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
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.
|
inlineprotected |
|
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.
cap_in_s | time limit in seconds |
|
protected |