Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType > Struct Template Reference

#include <Coloring.h>

Inheritance diagram for limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >:
limbo::algorithms::EdgeLabelWriter< GraphType >

Public Types

typedef GraphType graph_type
 
typedef la::EdgeLabelWriter
< graph_type > 
base_type
 
typedef base_type::edge_descriptor edge_descriptor
 
typedef base_type::edge_weight_type edge_weight_type
 
typedef boost::graph_traits
< graph_type >
::vertex_descriptor 
vertex_descriptor
 
- Public Types inherited from limbo::algorithms::EdgeLabelWriter< GraphType >
typedef GraphType graph_type
 
typedef boost::graph_traits
< graph_type >
::edge_descriptor 
edge_descriptor
 
typedef boost::property_traits
< typename boost::property_map
< graph_type,
boost::edge_weight_t >
::const_type >::value_type 
edge_weight_type
 

Public Member Functions

 ColoringEdgeLabelWriter (graph_type const &g, std::vector< int8_t > const &vc)
 
edge_weight_type label (edge_descriptor e) const
 
std::string color (edge_descriptor e) const
 
std::string style (edge_descriptor e) const
 
- Public Member Functions inherited from limbo::algorithms::EdgeLabelWriter< GraphType >
 EdgeLabelWriter (graph_type const &_g)
 
edge_weight_type label (edge_descriptor e) const
 
std::string color (edge_descriptor) const
 
std::string style (edge_descriptor) const
 

Public Attributes

std::vector< int8_t > const & vColor
 coloring solutions
 
- Public Attributes inherited from limbo::algorithms::EdgeLabelWriter< GraphType >
graph_type const & g
 bind graph object
 

Detailed Description

template<typename GraphType>
struct limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >

function object to write edge label

Template Parameters
GraphTypegraph type

Definition at line 69 of file Coloring.h.

Constructor & Destructor Documentation

template<typename GraphType >
limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::ColoringEdgeLabelWriter ( graph_type const &  g,
std::vector< int8_t > const &  vc 
)
inline

constructor

Parameters
ggraph
vccoloring solutions

Definition at line 84 of file Coloring.h.

Member Function Documentation

template<typename GraphType >
std::string limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::color ( edge_descriptor  e) const
inline

get color of edge

Parameters
eedge
Returns
color of edge

Definition at line 93 of file Coloring.h.

template<typename GraphType >
edge_weight_type limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::label ( edge_descriptor  e) const
inline

get label of edge

Parameters
eedge
Returns
label of edge

Definition at line 89 of file Coloring.h.

template<typename GraphType >
std::string limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::style ( edge_descriptor  e) const
inline

get style of edge

Parameters
eedge
Returns
style of edge

Definition at line 106 of file Coloring.h.


The documentation for this struct was generated from the following file: