Limbo 3.5.4
Loading...
Searching...
No Matches
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< typenameboost::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.

Member Typedef Documentation

◆ base_type

template<typename GraphType>
typedef la::EdgeLabelWriter<graph_type> limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::base_type

Definition at line 73 of file Coloring.h.

◆ edge_descriptor

template<typename GraphType>
typedef base_type::edge_descriptor limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::edge_descriptor

Definition at line 74 of file Coloring.h.

◆ edge_weight_type

template<typename GraphType>
typedef base_type::edge_weight_type limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::edge_weight_type

Definition at line 75 of file Coloring.h.

◆ graph_type

template<typename GraphType>
typedef GraphType limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::graph_type

Definition at line 72 of file Coloring.h.

◆ vertex_descriptor

template<typename GraphType>
typedef boost::graph_traits<graph_type>::vertex_descriptor limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::vertex_descriptor

Definition at line 76 of file Coloring.h.

Constructor & Destructor Documentation

◆ ColoringEdgeLabelWriter()

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

◆ color()

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.

◆ label()

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.

◆ style()

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.

Member Data Documentation

◆ vColor

template<typename GraphType>
std::vector<int8_t> const& limbo::algorithms::coloring::ColoringEdgeLabelWriter< GraphType >::vColor

coloring solutions

Definition at line 79 of file Coloring.h.


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