# HG changeset patch # User deba # Date 1130324391 0 # Node ID 503d0c79078a2488a9a91305cf338c9ce1bb611a # Parent 2637b9420d0a7882ee8c042ba44820a35a5f4045 Filename can be given as std::string diff -r 2637b9420d0a -r 503d0c79078a lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h Wed Oct 26 10:52:09 2005 +0000 +++ b/lemon/graph_to_eps.h Wed Oct 26 10:59:51 2005 +0000 @@ -1137,6 +1137,22 @@ (DefaultGraphToEpsTraits(g,*new std::ofstream(file_name),true)); } +///Generates an EPS file from a graph + +///\ingroup io_group +///This function does the same as +///\ref graphToEps(G &g,std::ostream& os) +///but it writes its output into the file \c file_name +///instead of a stream. +///\sa graphToEps(G &g, std::ostream& os) +template +GraphToEps > +graphToEps(G &g,const std::string& file_name) +{ + return GraphToEps > + (DefaultGraphToEpsTraits(g,*new std::ofstream(file_name.c_str()),true)); +} + } //END OF NAMESPACE LEMON #endif // LEMON_GRAPH_TO_EPS_H