Postscript Exporting
[Input-Output]


Detailed Description

This group describes general EPS drawing methods and special graph exporting tools.


Files

file  graph_to_eps.h
 A well configurable tool for visualizing graphs.

Functions

template<class G >
GraphToEps
< DefaultGraphToEpsTraits< G > > 
graphToEps (G &g, std::ostream &os=std::cout)
 Generates an EPS file from a graph.
template<class G >
GraphToEps
< DefaultGraphToEpsTraits< G > > 
graphToEps (G &g, const char *file_name)
 Generates an EPS file from a graph.
template<class G >
GraphToEps
< DefaultGraphToEpsTraits< G > > 
graphToEps (G &g, const std::string &file_name)
 Generates an EPS file from a graph.

Function Documentation

GraphToEps<DefaultGraphToEpsTraits<G> > lemon::graphToEps ( G &  g,
std::ostream &  os = std::cout 
) [inline]

Generates an EPS file from a graph.

Parameters:
g Reference to the graph to be printed.
os Reference to the output stream. By default it is std::cout.
This function also has a lot of named parameters, they are declared as the members of class GraphToEps. The following example shows how to use these parameters.
    graphToEps(g,os).scale(10).coords(coords)
                 .nodeScale(2).nodeSizes(sizes)
                 .arcWidthScale(.4).run();

For more detailed examples see the graph_to_eps_demo.cc demo file.

Warning:
Don't forget to put the run() to the end of the parameter list.
See also:
GraphToEps

graphToEps(G &g, const char *file_name)

GraphToEps<DefaultGraphToEpsTraits<G> > lemon::graphToEps ( G &  g,
const char *  file_name 
) [inline]

This function does the same as graphToEps(G &g,std::ostream& os) but it writes its output into the file file_name instead of a stream.

See also:
graphToEps(G &g, std::ostream& os)

GraphToEps<DefaultGraphToEpsTraits<G> > lemon::graphToEps ( G &  g,
const std::string &  file_name 
) [inline]

This function does the same as graphToEps(G &g,std::ostream& os) but it writes its output into the file file_name instead of a stream.

See also:
graphToEps(G &g, std::ostream& os)


Generated on Thu Mar 26 21:26:04 2009 for LEMON by  doxygen 1.5.8