lemon/graph_to_eps.h
changeset 2119 4cf25c61ea65
parent 2028 d0e8a86a1ff2
child 2172 4b25e7003868
equal deleted inserted replaced
23:0c72fc32c284 24:49f4ddc396f6
    39 #include<lemon/maps.h>
    39 #include<lemon/maps.h>
    40 #include<lemon/color.h>
    40 #include<lemon/color.h>
    41 #include<lemon/bezier.h>
    41 #include<lemon/bezier.h>
    42 
    42 
    43 
    43 
    44 ///\ingroup io_group
    44 ///\ingroup eps_io
    45 ///\file
    45 ///\file
    46 ///\brief Simple graph drawer
    46 ///\brief Simple graph drawer
    47 ///
    47 ///
    48 ///\author Alpar Juttner
    48 ///\author Alpar Juttner
    49 
    49 
  1040 const double GraphToEps<T>::A4BORDER = 15;
  1040 const double GraphToEps<T>::A4BORDER = 15;
  1041 
  1041 
  1042 
  1042 
  1043 ///Generates an EPS file from a graph
  1043 ///Generates an EPS file from a graph
  1044 
  1044 
  1045 ///\ingroup io_group
  1045 ///\ingroup eps_io
  1046 ///Generates an EPS file from a graph.
  1046 ///Generates an EPS file from a graph.
  1047 ///\param g is a reference to the graph to be printed
  1047 ///\param g is a reference to the graph to be printed
  1048 ///\param os is a reference to the output stream.
  1048 ///\param os is a reference to the output stream.
  1049 ///By default it is <tt>std::cout</tt>
  1049 ///By default it is <tt>std::cout</tt>
  1050 ///
  1050 ///
  1069     GraphToEps<DefaultGraphToEpsTraits<G> >(DefaultGraphToEpsTraits<G>(g,os));
  1069     GraphToEps<DefaultGraphToEpsTraits<G> >(DefaultGraphToEpsTraits<G>(g,os));
  1070 }
  1070 }
  1071  
  1071  
  1072 ///Generates an EPS file from a graph
  1072 ///Generates an EPS file from a graph
  1073 
  1073 
  1074 ///\ingroup io_group
  1074 ///\ingroup eps_io
  1075 ///This function does the same as
  1075 ///This function does the same as
  1076 ///\ref graphToEps(G &g,std::ostream& os)
  1076 ///\ref graphToEps(G &g,std::ostream& os)
  1077 ///but it writes its output into the file \c file_name
  1077 ///but it writes its output into the file \c file_name
  1078 ///instead of a stream.
  1078 ///instead of a stream.
  1079 ///\sa graphToEps(G &g, std::ostream& os)
  1079 ///\sa graphToEps(G &g, std::ostream& os)
  1085     (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name),true));
  1085     (DefaultGraphToEpsTraits<G>(g,*new std::ofstream(file_name),true));
  1086 }
  1086 }
  1087 
  1087 
  1088 ///Generates an EPS file from a graph
  1088 ///Generates an EPS file from a graph
  1089 
  1089 
  1090 ///\ingroup io_group
  1090 ///\ingroup eps_io
  1091 ///This function does the same as
  1091 ///This function does the same as
  1092 ///\ref graphToEps(G &g,std::ostream& os)
  1092 ///\ref graphToEps(G &g,std::ostream& os)
  1093 ///but it writes its output into the file \c file_name
  1093 ///but it writes its output into the file \c file_name
  1094 ///instead of a stream.
  1094 ///instead of a stream.
  1095 ///\sa graphToEps(G &g, std::ostream& os)
  1095 ///\sa graphToEps(G &g, std::ostream& os)