graph_analysis
Public Types | Public Member Functions | List of all members
graph_analysis::io::GraphvizStyle Class Reference

A styling interface class for the GraphvizWriter. More...

#include <GraphvizStyle.hpp>

Inheritance diagram for graph_analysis::io::GraphvizStyle:
Inheritance graph
[legend]

Public Types

typedef shared_ptr< GraphvizStyle > Ptr
 

Public Member Functions

 GraphvizStyle ()
 
virtual ~GraphvizStyle ()
 
virtual void apply (const Edge::Ptr &edge, GVGraph *gvGraph, const BaseGraph::Ptr &graph) const
 
virtual void apply (const Vertex::Ptr &vertex, GVGraph *gvGraph, const BaseGraph::Ptr &graph) const
 

Detailed Description

A styling interface class for the GraphvizWriter.

See also
GraphvizWriter for further usage

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ GraphvizStyle()

graph_analysis::io::GraphvizStyle::GraphvizStyle ( )
inline

◆ ~GraphvizStyle()

virtual graph_analysis::io::GraphvizStyle::~GraphvizStyle ( )
inlinevirtual

Member Function Documentation

◆ apply() [1/2]

virtual void graph_analysis::io::GraphvizStyle::apply ( const Edge::Ptr &  edge,
GVGraph *  gvGraph,
const BaseGraph::Ptr &  graph 
) const
inlinevirtual

Apply style to an edge, e.g. by implementing the style

gvGraph->setAttribute(edge,"color","red");

Reimplemented in graph_analysis::io::GraphvizGridStyle.

◆ apply() [2/2]

virtual void graph_analysis::io::GraphvizStyle::apply ( const Vertex::Ptr &  vertex,
GVGraph *  gvGraph,
const BaseGraph::Ptr &  graph 
) const
inlinevirtual

Apply style to a vertex

gvGraph->setAttribute(vertex,"color","blue");

Reimplemented in graph_analysis::io::GraphvizGridStyle.


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