1.1 --- a/lemon/graph_to_eps.h Wed Oct 26 10:52:09 2005 +0000
1.2 +++ b/lemon/graph_to_eps.h Wed Oct 26 10:59:51 2005 +0000
1.3 @@ -1137,6 +1137,22 @@
1.4 (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name),true));
1.5 }
1.6
1.7 +///Generates an EPS file from a graph
1.8 +
1.9 +///\ingroup io_group
1.10 +///This function does the same as
1.11 +///\ref graphToEps(G &g,std::ostream& os)
1.12 +///but it writes its output into the file \c file_name
1.13 +///instead of a stream.
1.14 +///\sa graphToEps(G &g, std::ostream& os)
1.15 +template<class G>
1.16 +GraphToEps<DefaultGraphToEpsTraits<G> >
1.17 +graphToEps(G &g,const std::string& file_name)
1.18 +{
1.19 + return GraphToEps<DefaultGraphToEpsTraits<G> >
1.20 + (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name.c_str()),true));
1.21 +}
1.22 +
1.23 } //END OF NAMESPACE LEMON
1.24
1.25 #endif // LEMON_GRAPH_TO_EPS_H