This group contains 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 GR > | |
GraphToEps < DefaultGraphToEpsTraits< GR > > | graphToEps (GR &g, std::ostream &os=std::cout) |
Generates an EPS file from a graph. | |
template<class GR > | |
GraphToEps < DefaultGraphToEpsTraits< GR > > | graphToEps (GR &g, const char *file_name) |
Generates an EPS file from a graph. | |
template<class GR > | |
GraphToEps < DefaultGraphToEpsTraits< GR > > | graphToEps (GR &g, const std::string &file_name) |
Generates an EPS file from a graph. |
GraphToEps<DefaultGraphToEpsTraits<GR> > lemon::graphToEps | ( | GR & | g, |
std::ostream & | os = std::cout |
||
) |
Generates an EPS file from a graph.
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.
GraphToEps<DefaultGraphToEpsTraits<GR> > lemon::graphToEps | ( | GR & | g, |
const char * | file_name | ||
) |
This function does the same as graphToEps(GR &g,std::ostream& os) but it writes its output into the file file_name
instead of a stream.
GraphToEps<DefaultGraphToEpsTraits<GR> > lemon::graphToEps | ( | GR & | g, |
const std::string & | file_name | ||
) |
This function does the same as graphToEps(GR &g,std::ostream& os) but it writes its output into the file file_name
instead of a stream.