All Classes Files Functions Variables Pages
coarsen.h
Go to the documentation of this file.
1 
80 #ifndef COARSEN_H
81 #define COARSEN_H
82 
92 int mxm_shared(Graph& g, std::vector<int> &colors, int numColors);
93 
102 int colorGraph_shared(Graph& g, std::vector<int> &colors, int &numColors);
103 
112 int mis_shared(Graph& g, std::vector<int> finalRemoveList, std::vector<int> &I, int currentColor);
113 
114 
125 int doubleSelect_shared(std::vector<int> &colors, int currentColor, std::vector<int> matchList, int unmatchedValue, std::vector<int> &nodeList);
126 
135 int selectUnmatched_shared(std::vector<int> matchList, int unmatchedValue, std::vector<int> &nodeList);
136 
143 std::vector<int> inclusiveScan_shared(std::vector<int> a);
144 
145 #endif
TODO: Give description of Graph class and add comments to each function.
Definition: graph.h:37
std::vector< int > inclusiveScan_shared(std::vector< int > a)
Performs parallel inclusive scan on vector. Does not use pass by reference since algorithm is recursi...
int colorGraph_shared(Graph &g, std::vector< int > &colors, int &numColors)
Compute colors for graph coarsening implementing openmp parallelism.
int selectUnmatched_shared(std::vector< int > matchList, int unmatchedValue, std::vector< int > &nodeList)
Find unmatched nodes of a particular color.
int doubleSelect_shared(std::vector< int > &colors, int currentColor, std::vector< int > matchList, int unmatchedValue, std::vector< int > &nodeList)
Find unmatched nodes of a particular color.
int mxm_shared(Graph &g, std::vector< int > &colors, int numColors)
Compute maximal matching for graph.
int mis_shared(Graph &g, std::vector< int > finalRemoveList, std::vector< int > &I, int currentColor)
Compute maximal independent set.

Generated on Thu Oct 11 2018 12:36:17 for by  doxygen 1.8.5