1.1 --- a/lemon/graph_to_eps.h Wed Jul 20 08:03:15 2005 +0000
1.2 +++ b/lemon/graph_to_eps.h Wed Jul 20 08:06:32 2005 +0000
1.3 @@ -68,7 +68,7 @@
1.4
1.5 ///Maps <tt>int</tt>s to different \ref Color "Color"s
1.6
1.7 -///This map assing one of the predefined \ref Color "Color"s
1.8 +///This map assigns one of the predefined \ref Color "Color"s
1.9 ///to each <tt>int</tt>. It is possible to change the colors as well as their
1.10 ///number. The integer range is cyclically mapped to the provided set of colors.
1.11 ///
1.12 @@ -145,7 +145,7 @@
1.13 ///Sets the number of the exiting colors.
1.14 void resize(int s) { colors.resize(s);}
1.15 ///Returns the munber of the existing colors.
1.16 - std::size_t size() { return colors.size();}
1.17 + std::size_t size() const { return colors.size();}
1.18 };
1.19
1.20 ///Returns a visible distinct \ref Color
1.21 @@ -466,7 +466,7 @@
1.22 ///The PS current point will be moved to the centre of the node before
1.23 ///the PostScript block inserted.
1.24 ///
1.25 - ///Before and after the block a newline character is inserted to you
1.26 + ///Before and after the block a newline character is inserted so you
1.27 ///don't have to bother with the separators.
1.28 ///
1.29 ///\param x must be a node map with type that can be pushed to a standard
1.30 @@ -502,7 +502,9 @@
1.31 ///Sets the map of the node colors
1.32
1.33 ///Sets the map of the node colors
1.34 - ///\param x must be a node map with \ref Color values.
1.35 + ///\param x must be a node map with \ref Color values.
1.36 + ///
1.37 + ///\sa ColorSet
1.38 template<class X> GraphToEps<NodeColorsTraits<X> >
1.39 nodeColors(const X &x)
1.40 {
1.41 @@ -517,6 +519,8 @@
1.42
1.43 ///Sets the map of the node text colors
1.44 ///\param x must be a node map with \ref Color values.
1.45 + ///
1.46 + ///\sa ColorSet
1.47 template<class X> GraphToEps<NodeTextColorsTraits<X> >
1.48 nodeTextColors(const X &x)
1.49 {
1.50 @@ -533,6 +537,8 @@
1.51
1.52 ///Sets the map of the edge colors
1.53 ///\param x must be a edge map with \ref Color values.
1.54 + ///
1.55 + ///\sa ColorSet
1.56 template<class X> GraphToEps<EdgeColorsTraits<X> >
1.57 edgeColors(const X &x)
1.58 {
1.59 @@ -621,7 +627,7 @@
1.60
1.61 ///Sets the color of the node texts to be as different from the node color
1.62 ///as it is possible
1.63 - ///
1.64 + ///
1.65 GraphToEps<T> &distantColorNodeTexts()
1.66 {_nodeTextColorType=DIST_COL;return *this;}
1.67 ///Sets the color of the node texts to be black or white and always visible.
1.68 @@ -1008,7 +1014,7 @@
1.69 ///\warning Don't forget to put the \ref GraphToEps::run() "run()"
1.70 ///to the end of the parameter list.
1.71 ///\sa GraphToEps
1.72 -///\sa graphToEps(G &g, char *file_name)
1.73 +///\sa graphToEps(G &g, const char *file_name)
1.74 template<class G>
1.75 GraphToEps<DefaultGraphToEpsTraits<G> >
1.76 graphToEps(G &g, std::ostream& os=std::cout)
1.77 @@ -1019,7 +1025,7 @@
1.78
1.79 ///Generates an EPS file from a graph
1.80
1.81 -///\ingroup misc
1.82 +///\ingroup io_group
1.83 ///This function does the same as
1.84 ///\ref graphToEps(G &g,std::ostream& os)
1.85 ///but it writes its output into the file \c file_name