src/lemon/graph_to_eps.h
changeset 1091 c756973cd53c
parent 1089 c0f4ebdc0034
child 1103 f196dc4f1b31
     1.1 --- a/src/lemon/graph_to_eps.h	Thu Jan 20 10:24:38 2005 +0000
     1.2 +++ b/src/lemon/graph_to_eps.h	Thu Jan 20 14:16:40 2005 +0000
     1.3 @@ -421,8 +421,15 @@
     1.4    }
     1.5  
     1.6  public:
     1.7 -  ~GraphToEps() 
     1.8 -  {
     1.9 +  ~GraphToEps() { }
    1.10 +  
    1.11 +  ///Draws the graph.
    1.12 +
    1.13 +  ///Like other functions using
    1.14 +  ///\ref named-templ-func-param "named template parameters",
    1.15 +  ///this function calles the algorithm itself, i.e. in this case
    1.16 +  ///it draws the graph.
    1.17 +  void run() {
    1.18      if(dontPrint) return;
    1.19      
    1.20      os << "%!PS-Adobe-2.0 EPSF-2.0\n";
    1.21 @@ -667,14 +674,17 @@
    1.22  ///\param os is a reference to the output stream.
    1.23  ///By default it is <tt>std::cout</tt>
    1.24  ///
    1.25 -///This function also has a lot of \ref named-templ-param "named parameters",
    1.26 +///This function also has a lot of
    1.27 +///\ref named-templ-func-param "named parameters",
    1.28  ///they are declared as the members of class \ref GraphToEps. The following
    1.29  ///example shows how to use these parameters.
    1.30  ///\code
    1.31  /// graphToEps(g).scale(10).coords(coords)
    1.32  ///              .nodeScale(2).nodeSizes(sizes)
    1.33 -///              .edgeWidthScale(.4);
    1.34 +///              .edgeWidthScale(.4).run();
    1.35  ///\endcode
    1.36 +///\warning Don't forget to put the \ref GraphToEps::run() "run()"
    1.37 +///to the end of the parameter list.
    1.38  ///\sa GraphToEps
    1.39  ///\sa graphToEps(G &g, char *file_name)
    1.40  template<class G>