Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Generate_Graphviz< GT, Write_Node, Write_Arc, Shade_Node, Shade_Arc, Dashed_Node, Dashed_Arc, SA, SN > Struct Template Reference

Functor for generating Graphviz specifications. More...

#include <generate_graph.H>

Public Member Functions

void operator() (GT &g, std::ostream &out, const std::string &rankdir="TB", float ranksep=0.4, float nodesep=0.4)
 Generate DOT specification for the graph.
 

Detailed Description

template<class GT, class Write_Node, class Write_Arc, class Shade_Node = Dummy_Attr<GT>, class Shade_Arc = Dummy_Attr<GT>, class Dashed_Node = Dummy_Attr<GT>, class Dashed_Arc = Dummy_Attr<GT>, class SA = Dft_Show_Arc<GT>, class SN = Dft_Show_Node<GT>>
struct Aleph::Generate_Graphviz< GT, Write_Node, Write_Arc, Shade_Node, Shade_Arc, Dashed_Node, Dashed_Arc, SA, SN >

Functor for generating Graphviz specifications.

A convenience functor class that wraps generate_graphviz() with full template parameter control.

Template Parameters
GTGraph type
Write_NodeFunctor returning node label string
Write_ArcFunctor returning arc label string
Shade_NodeFunctor for node shading (returns string command)
Shade_ArcFunctor for arc shading (returns string command)
Dashed_Node(unused) For dashed node styling
Dashed_Arc(unused) For dashed arc styling
SAArc filter
SNNode filter
See also
generate_graphviz() The underlying function

Definition at line 748 of file generate_graph.H.

Member Function Documentation

◆ operator()()

template<class GT , class Write_Node , class Write_Arc , class Shade_Node = Dummy_Attr<GT>, class Shade_Arc = Dummy_Attr<GT>, class Dashed_Node = Dummy_Attr<GT>, class Dashed_Arc = Dummy_Attr<GT>, class SA = Dft_Show_Arc<GT>, class SN = Dft_Show_Node<GT>>
void Aleph::Generate_Graphviz< GT, Write_Node, Write_Arc, Shade_Node, Shade_Arc, Dashed_Node, Dashed_Arc, SA, SN >::operator() ( GT g,
std::ostream &  out,
const std::string &  rankdir = "TB",
float  ranksep = 0.4,
float  nodesep = 0.4 
)
inline

Generate DOT specification for the graph.

Parameters
gGraph to visualize
outOutput stream
rankdirLayout direction: "TB", "BT", "LR", "RL"
ranksepSeparation between ranks
nodesepSeparation between nodes

Definition at line 758 of file generate_graph.H.

References Aleph::generate_graphviz(), and Aleph::maps().


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