|
Limbo 3.5.4
|
test ILP based coloring algorithm limbo::algorithms::coloring::ILPColoring More...
#include <iostream>#include <fstream>#include <string>#include <limbo/preprocessor/AssertMsg.h>#include <boost/graph/graphviz.hpp>#include <boost/graph/graph_utility.hpp>#include <boost/graph/adjacency_list.hpp>#include <boost/graph/undirected_graph.hpp>#include <limbo/algorithms/coloring/ILPColoring.h>#include <boost/graph/erdos_renyi_generator.hpp>#include <boost/random/mersenne_twister.hpp>#include <boost/graph/random.hpp>#include <boost/graph/iteration_macros.hpp>#include <boost/version.hpp>#include <boost/graph/detail/is_same.hpp>Go to the source code of this file.
Typedefs | |
| typedef adjacency_list< vecS, vecS, undirectedS, property< vertex_index_t, std::size_t, property< vertex_color_t, int > >, property< edge_index_t, std::size_t, property< edge_weight_t, int > >, property< graph_name_t, string > > | graph_type |
| typedef subgraph< graph_type > | subgraph_type |
| typedef property< vertex_index_t, std::size_t > | VertexId |
| typedef property< edge_index_t, std::size_t > | EdgeID |
| typedef graph_traits< graph_type >::vertex_descriptor | vertex_descriptor |
| typedef graph_traits< graph_type >::edge_descriptor | edge_descriptor |
| typedef property_map< graph_type, edge_weight_t >::type | edge_weight_map_type |
| typedef property_map< graph_type, vertex_color_t >::type | vertex_color_map_type |
Functions | |
| void | randomGraph () |
| test 1: a random graph | |
| void | realGraph (string const &filename) |
| int | main (int argc, char **argv) |
test ILP based coloring algorithm limbo::algorithms::coloring::ILPColoring
Definition in file test_ILPColoring.cpp.
| typedef graph_traits<graph_type>::edge_descriptor edge_descriptor |
Definition at line 48 of file test_ILPColoring.cpp.
| typedef property_map<graph_type,edge_weight_t>::type edge_weight_map_type |
Definition at line 49 of file test_ILPColoring.cpp.
| typedef property<edge_index_t, std::size_t> EdgeID |
Definition at line 46 of file test_ILPColoring.cpp.
| typedef adjacency_list<vecS, vecS, undirectedS, property<vertex_index_t, std::size_t, property<vertex_color_t, int> >, property<edge_index_t, std::size_t, property<edge_weight_t, int> >, property<graph_name_t, string> > graph_type |
Definition at line 43 of file test_ILPColoring.cpp.
| typedef subgraph<graph_type> subgraph_type |
Definition at line 44 of file test_ILPColoring.cpp.
| typedef property_map<graph_type,vertex_color_t>::type vertex_color_map_type |
Definition at line 50 of file test_ILPColoring.cpp.
| typedef graph_traits<graph_type>::vertex_descriptor vertex_descriptor |
Definition at line 47 of file test_ILPColoring.cpp.
| typedef property<vertex_index_t, std::size_t> VertexId |
Definition at line 45 of file test_ILPColoring.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
main function
test either on random graph or real graph
| argc | number of arguments |
| argv | values of arguments |
Definition at line 156 of file test_ILPColoring.cpp.
| void randomGraph | ( | ) |
test 1: a random graph
Definition at line 54 of file test_ILPColoring.cpp.
| void realGraph | ( | string const & | filename | ) |
test 2: a real graph from input
| filename | input file in graphviz format |
Definition at line 88 of file test_ILPColoring.cpp.