Limbo 3.5.4
Loading...
Searching...
No Matches
test_GraphSimplification.cpp File Reference

test graph simplification algorithms limbo::algorithms::coloring::GraphSimplification More...

#include <iostream>
#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/GraphSimplification.h>
#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 realGraph (string const &filename)
int main (int argc, char **argv)

Detailed Description

test graph simplification algorithms limbo::algorithms::coloring::GraphSimplification

Author
Yibo Lin
Date
May 19 01:15:09 2015

Definition in file test_GraphSimplification.cpp.

Typedef Documentation

◆ edge_descriptor

typedef graph_traits<graph_type>::edge_descriptor edge_descriptor

Definition at line 41 of file test_GraphSimplification.cpp.

◆ edge_weight_map_type

typedef property_map<graph_type,edge_weight_t>::type edge_weight_map_type

Definition at line 42 of file test_GraphSimplification.cpp.

◆ EdgeID

typedef property<edge_index_t, std::size_t> EdgeID

Definition at line 39 of file test_GraphSimplification.cpp.

◆ graph_type

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 36 of file test_GraphSimplification.cpp.

◆ subgraph_type

typedef subgraph<graph_type> subgraph_type

Definition at line 37 of file test_GraphSimplification.cpp.

◆ vertex_color_map_type

typedef property_map<graph_type,vertex_color_t>::type vertex_color_map_type

Definition at line 43 of file test_GraphSimplification.cpp.

◆ vertex_descriptor

typedef graph_traits<graph_type>::vertex_descriptor vertex_descriptor

Definition at line 40 of file test_GraphSimplification.cpp.

◆ VertexId

typedef property<vertex_index_t, std::size_t> VertexId

Definition at line 38 of file test_GraphSimplification.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function
test either on real graph

Parameters
argcnumber of arguments
argvvalues of arguments
Returns
0

Definition at line 132 of file test_GraphSimplification.cpp.

◆ realGraph()

void realGraph ( string const & filename)

test 1: a real graph from input

Parameters
filenameinput file in graphviz format

Definition at line 48 of file test_GraphSimplification.cpp.