|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Functor class for generating Graphviz DOT specifications. More...
#include <generate_graph.H>
Public Member Functions | |
| To_Graphviz (SA __sa=SA()) | |
| Keeps sa, the filter of the arcs. | |
| void | operator() (const GT &g, std::ostream &out, const Node_Attr &node_attr=Node_Attr(), const Arc_Attr &arc_attr=Arc_Attr(), const std::string &rankdir="LR") |
| Generate DOT specification for a graph. | |
| void | digraph (const GT &g, std::ostream &out, const Node_Attr &node_attr=Node_Attr(), const Arc_Attr &arc_attr=Arc_Attr(), const std::string &rankdir="LR") |
| void | ranks (const GT &g, std::ostream &out, const Node_Attr &node_attr=Node_Attr(), const Arc_Attr &arc_attr=Arc_Attr(), const std::string &rankdir="LR") |
Public Attributes | |
| SA | sa |
| the filter of the arcs, which each generation copies | |
Functor class for generating Graphviz DOT specifications.
A high-level class that traverses a graph and generates a DOT specification for the Graphviz visualization system. The class handles the topological structure while delegating content generation to customizable attribute classes.
cpp Node_Attr()(g, node, out); // writes to out stream cpp Arc_Attr()(g, arc, out); // writes to out stream For each node:
For each arc:
Definition at line 692 of file generate_graph.H.
|
inlineexplicit |
Keeps sa, the filter of the arcs.
Definition at line 697 of file generate_graph.H.
|
inline |
Definition at line 716 of file generate_graph.H.
References out, and Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::sa.
Referenced by Aleph::print_net_cost().
|
inline |
Generate DOT specification for a graph.
@param g The graph to visualize
@param out Output stream for DOT specification
@param node_attr Node attribute generator functor
@param arc_attr Arc attribute generator functor
@param rankdir Layout direction ("TB", "BT", "LR", "RL")
Definition at line 707 of file generate_graph.H.
References out, and Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::sa.
|
inline |
Definition at line 725 of file generate_graph.H.
References out, and Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::sa.
| SA Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::sa |
the filter of the arcs, which each generation copies
Definition at line 694 of file generate_graph.H.
Referenced by Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::digraph(), Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::operator()(), and Aleph::To_Graphviz< GT, Node_Attr, Arc_Attr, SN, SA >::ranks().