ColPack
|
00001 /* Notes: 00002 * - This code will crash if the matrix only has patterns (no value) 00003 //*/ 00004 00005 #include "ColPackHeaders.h" 00006 00007 using namespace ColPack; 00008 using namespace std; 00009 00010 00011 00012 #include "extra.h" //This .h file contains functions that are used in the below examples: 00013 //ReadMM(), MatrixMultiplication...(), Times2Plus1point5(), displayMatrix() and displayCompressedRowMatrix() 00014 #include "stat.h" 00015 00016 int main(int argc, const char* argv[]) { 00017 vector<string> Orderings; 00018 Orderings.push_back("NATURAL"); 00019 Orderings.push_back("LARGEST_FIRST"); 00020 Orderings.push_back("DYNAMIC_LARGEST_FIRST"); 00021 Orderings.push_back("SMALLEST_LAST"); 00022 Orderings.push_back("INCIDENCE_DEGREE"); 00023 Orderings.push_back("RANDOM"); 00024 00025 vector<string> Colorings; 00026 Colorings.push_back("EXPLICIT_COVERING__STAR_BICOLORING"); 00027 Colorings.push_back("EXPLICIT_COVERING__MODIFIED_STAR_BICOLORING"); 00028 Colorings.push_back("IMPLICIT_COVERING__STAR_BICOLORING"); 00029 Colorings.push_back("IMPLICIT_COVERING__GREEDY_STAR_BICOLORING"); 00030 00031 map<string, bool> stat_flags; 00032 stat_flags["output_append"]=true; 00033 stat_flags["NumberOfColors"]=true; 00034 stat_flags["Time"]=true; 00035 00036 toFileBiC("/home/nguyend/Desktop/Duck/Research/Prog/graph/MM_collection/", "test1", Orderings, Colorings, stat_flags ); 00037 00038 return 0; 00039 }