62#ifndef GENERATE_SPANNING_TREE_PICTURE_H
63#define GENERATE_SPANNING_TREE_PICTURE_H
79 return NODE_COOKIE(p) ==
nullptr ?
"" :
"SHADOW-NODE";
97 return ARC_COOKIE(a) ==
nullptr ?
"ARC" :
"SHADOW-ARC";
121template <
typename GT,
class Write_Node,
class Write_Arc,
class SA>
124 const double &
xdist,
125 const double &
ydist,
135template <
typename GT,
class Write_Node,
class Write_Arc>
138 const double &
xdist,
139 const double &
ydist,
167template <
typename GT,
class Write_Node,
class Write_Arc,
class SA>
170 const double &
xdist,
171 const double &
ydist,
181template <
typename GT,
class Write_Node,
class Write_Arc>
184 const double &
xdist,
185 const double &
ydist,
List_Graph< Graph_Node< int >, Graph_Arc< int > > GT
Graph visualization and output generation utilities.
void generate_net_spanning_tree(GT &g, const size_t &nodes_by_level, const double &xdist, const double &ydist, std::ofstream &output)
Generate a net-layout visualization of a spanning tree.
#define ARC_COOKIE(p)
Return the arc cookie
void generate_cross_spanning_tree(GT &g, const size_t &nodes_by_level, const double &xdist, const double &ydist, std::ofstream &output)
Generate a cross-layout visualization of a spanning tree.
#define NODE_COOKIE(p)
Return the node cookie
void generate_cross_graph(GT &g, const size_t &nodes_by_level, const double &xdist, const double &ydist, std::ostream &out)
Generate a cross-graph layout specification for graphpic.
void generate_net_graph(GT &g, const size_t &nodes_by_level, const double &xdist, const double &ydist, std::ostream &out)
Generate a net-graph layout specification for graphpic.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Default filter for filtered iterators on arcs.
Arc of graph implemented with double-linked adjacency lists.
Shading functor for spanning tree arcs.
std::string operator()(typename GT::Arc *a) const
Shading functor for spanning tree nodes.
std::string operator()(typename GT::Node *p) const
Writer that outputs only the node key.