Bridges-Python 3.5.1
Bridges(Python API)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bridges.bfs_benchmark.BFSBenchamrk Class Reference

Benchmarks Breadth First Search algorithms. More...

Inheritance diagram for bridges.bfs_benchmark.BFSBenchamrk:
bridges.graph_benchmark.GraphBenchmark

Public Member Functions

 __init__ (self, p)
 
 run (self, algo_name, bfsalgo)
 benchmark one implementation
 

Additional Inherited Members

- Protected Member Functions inherited from bridges.graph_benchmark.GraphBenchmark
 _genertate_wiki_data_movie_actor (self, year_min, year_max, movie_graph)
 
 _highest_degree_vertex (self, gr)
 
 _count_vertices (self, gr)
 
 _count_edges (self, gr)
 
- Protected Attributes inherited from bridges.graph_benchmark.GraphBenchmark
 _time_cap
 
- Properties inherited from bridges.graph_benchmark.GraphBenchmark
 time_cap = property
 

Detailed Description

Benchmarks Breadth First Search algorithms.

Benchmarks BFS algorithms and add time series to a LineChart.

One can also set a maximum time spent on a particular run using setTimeCap().

The BFS algorithms must have for prototype:

and can be passed to the run function for being benchmarked. A typical use would look something like

code lc LineChart() sb BFSBenchmark(lc)

sb.run("mybfsalgorithm", bfsalgo)
endcode
Author
Erik Saule
Date
07212019

Constructor & Destructor Documentation

◆ __init__()

bridges.bfs_benchmark.BFSBenchamrk.__init__ (   self,
  p 
)

Member Function Documentation

◆ run()

bridges.bfs_benchmark.BFSBenchamrk.run (   self,
  algo_name,
  bfsalgo 
)

benchmark one implementation

Parameters
algo_namescreen name of the algorithm to be used in the visualization
bfsalgopointer to the sorting function to benchmark

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