lemon/graph_to_eps.h
changeset 1796 b6a58c8bea87
parent 1676 c3e416514759
child 1875 98698b69a902
equal deleted inserted replaced
11:786697308811 12:7fc20d930e8c
  1135 {
  1135 {
  1136   return GraphToEps<DefaultGraphToEpsTraits<G> >
  1136   return GraphToEps<DefaultGraphToEpsTraits<G> >
  1137     (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name),true));
  1137     (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name),true));
  1138 }
  1138 }
  1139 
  1139 
       
  1140 ///Generates an EPS file from a graph
       
  1141 
       
  1142 ///\ingroup io_group
       
  1143 ///This function does the same as
       
  1144 ///\ref graphToEps(G &g,std::ostream& os)
       
  1145 ///but it writes its output into the file \c file_name
       
  1146 ///instead of a stream.
       
  1147 ///\sa graphToEps(G &g, std::ostream& os)
       
  1148 template<class G>
       
  1149 GraphToEps<DefaultGraphToEpsTraits<G> > 
       
  1150 graphToEps(G &g,const std::string& file_name)
       
  1151 {
       
  1152   return GraphToEps<DefaultGraphToEpsTraits<G> >
       
  1153     (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name.c_str()),true));
       
  1154 }
       
  1155 
  1140 } //END OF NAMESPACE LEMON
  1156 } //END OF NAMESPACE LEMON
  1141 
  1157 
  1142 #endif // LEMON_GRAPH_TO_EPS_H
  1158 #endif // LEMON_GRAPH_TO_EPS_H