Index: doc/graph_orientation.dox
===================================================================
--- doc/graph_orientation.dox (revision 1678)
+++ doc/graph_orientation.dox (revision 1684)
@@ -7,5 +7,26 @@
in-degree of the nodes.
+This demo shows an adaptation of the well-known "preflow push" algorithm to
+a simple graph orientation problem.
+The input of the problem is a(n undirected) graph and an integer value
+f(n) assigned to each node \e n. The task is to find an orientation
+of the edges for which the number of edge arriving to each node \e n is at
+least least f(n).
+
+In fact, the algorithm reads a directed graph and computes a set of edges to
+be reversed in order to achieve the in-degree requirement.
+This input is given using
+\ref graph-io-page ".lgf (Lemon Graph Format)" file. It should contain
+three node maps. The one called "f" contains the in-degree requirements, while
+"coordinate_x" and "coordinate_y" indicate the position of the nodes. These
+latter ones are used to generate the output, which is a .eps file.
+
+
+\section go-alg-dec The C++ source file
+
+Here you find how to solve the problem above using lemon.
+
+\subsection go-alg-head Headers and convenience typedefs
First we include some important headers.
@@ -37,4 +58,6 @@
\until InEdgeIt
+\subsection go-alg-main The main() function
+
Well, we are ready to start main().
\skip main
@@ -48,5 +71,5 @@
Now, we read a graph \c g, and a map \c f containing
-the in-deg requirements from a \ref graph-io-page ".lgf" (Lemon Graph Format)
+the in-deg requirements from a \ref graph-io-page ".lgf (Lemon Graph Format)"
file. To generate the output picture, we also read the node titles (\c id) and
coordinates (\c coords).