-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
39 changed files
with
421 additions
and
1,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
*.dot | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _DSATUR_H_ | ||
#define _DSATUR_H_ | ||
|
||
#include "graph_color.h" | ||
|
||
using GraphColoring::GraphColor; | ||
|
||
namespace GraphColoring{ | ||
class Dsatur : public GraphColor { | ||
public: | ||
Dsatur(map<string,vector<string> > input_graph) :GraphColor(input_graph) { | ||
//algorithm = kDSATUR; | ||
} | ||
map<string,int> color(); | ||
string get_algorithm_string() { return "DSATUR"; } | ||
}; | ||
} | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef _HYBRID_H_ | ||
#define _HYBRID_H_ | ||
|
||
#include "graph_color.h" | ||
#include "lmxrlf.h" | ||
#include "tabucol.h" | ||
|
||
using GraphColoring::GraphColor; | ||
using GraphColoring::Lmxrlf; | ||
using GraphColoring::Tabucol; | ||
|
||
namespace GraphColoring{ | ||
class Hybrid : public GraphColor { | ||
private: | ||
int condition; | ||
map< string,vector<string> > get_subgraph(map< string,int > coloring); | ||
public: | ||
Hybrid(map<string,vector<string> > input_graph) :GraphColor(input_graph) { } | ||
Hybrid(map<string,vector<string> > input_graph, int con) :GraphColor(input_graph){ | ||
condition = con; | ||
} | ||
map<string,int> color(); | ||
string get_algorithm_string() { return "HYBRID"; } | ||
void set_condition(int con) { condition = con; } | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef _HYBRID_DSATUR_H_ | ||
#define _HYBRID_DSATUR_H_ | ||
|
||
#include "graph_color.h" | ||
#include "dsatur.h" | ||
#include "tabucol.h" | ||
|
||
using GraphColoring::GraphColor; | ||
using GraphColoring::Dsatur; | ||
using GraphColoring::Tabucol; | ||
|
||
namespace GraphColoring{ | ||
class HybridDsatur : public GraphColor { | ||
public: | ||
HybridDsatur(map<string, vector<string> > input_graph) :GraphColor(input_graph) { } | ||
map<string,int> color(); | ||
string get_algorithm_string() { return "HYBRIDDSATUR"; } | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef _MCS_H_ | ||
#define _MCS_H_ | ||
|
||
#include "graph_color.h" | ||
|
||
using GraphColoring::GraphColor; | ||
|
||
namespace GraphColoring{ | ||
class Mcs : public GraphColor { | ||
public: | ||
Mcs(map<string, vector<string> > input_graph) :GraphColor(input_graph) { } | ||
map<string,int> color(); | ||
string get_algorithm_string() { return "MCS"; } | ||
}; | ||
} | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.