Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShGraphDefaultDumper< G > Struct Template Reference

does a graphviz dump of the graph More...

#include <ShGraph.hpp>

List of all members.

Public Member Functions

std::ostream & operator() (std::ostream &out, const typename G::Vertex *v)
std::ostream & operator() (std::ostream &out, const typename G::Edge *e)


Detailed Description

template<typename G>
struct SH::ShGraphDefaultDumper< G >

does a graphviz dump of the graph

D is a functor that has two operators: ostream& operator()(ostream& out, const G::Vertex & v); ostream& operator()(ostream& out, const G::Edge& e); that outputs information per vertex and per edge.

The default dump functor uses the built in graphvizDump functions in ShGraphVertex and ShGraphEdge.

You can either override the function sin the vertex/edge or here to change the dump behaviour (changing the vertex/edge is useful for changing default dump behvaiour, making a special dumper is useful for example to visualize the results of running a specific algorithm on the graph)

Definition at line 284 of file ShGraph.hpp.


The documentation for this struct was generated from the following files:
Generated on Mon Jan 24 18:38:12 2005 for Sh by  doxygen 1.4.1