Graph¶
Defined in include/graph.hpp
-
struct
perfData¶ Struct to hold performance metrics (Total MST weight and elapsed time to calculate)
-
enum
Algorithm¶ List of algorithms used in MST calculation
Values:
-
enumerator
KRUSKAL¶
-
enumerator
PRIM¶
-
enumerator
-
template<Algorithm
alg= KRUSKAL>
classGraph¶ Public Functions
-
Graph() = default¶
-
Graph(std::string &filename)¶ Constructor to create Graph object from a file.
- Template Parameters
alg: which algorithm to be used in MST calculation
- Parameters
filename: File that contains the adjacency list representation of graph
-
Graph(const char *filename)¶ Constructor to create Graph object from a file.
- Template Parameters
alg: which algorithm to be used in MST calculation
- Parameters
filename: File that contains the adjacency list representation of graph
-
struct
Edge¶ Struct to hold weighted directed edge information
-