COIN-OR::LEMON - Graph Library

Changeset 1743:503d0c79078a in lemon-0.x for lemon/graph_to_eps.h


Ignore:
Timestamp:
10/26/05 12:59:51 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2271
Message:

Filename can be given as std::string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r1676 r1743  
    11381138}
    11391139
     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)
     1148template<class G>
     1149GraphToEps<DefaultGraphToEpsTraits<G> >
     1150graphToEps(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
    11401156} //END OF NAMESPACE LEMON
    11411157
Note: See TracChangeset for help on using the changeset viewer.