doc/graph_orientation.dox
changeset 2219 c263168e0964
parent 2158 0b620ff10e7c
child 2310 96cca167430a
equal deleted inserted replaced
4:e1873d126fbe 5:877d0c55bf0e
    51 
    51 
    52 As we don't want to type in \ref lemon "lemon::" million times, the
    52 As we don't want to type in \ref lemon "lemon::" million times, the
    53 following line seems to be useful.
    53 following line seems to be useful.
    54 \skipline namespace
    54 \skipline namespace
    55 
    55 
    56 The following <tt>typedef</tt>s will also save a lot of typing.
    56 The following macro will also save a lot of typing by defining some
    57 \skip typedef
    57 convenience <tt>typedef</tt>s.
    58 \until InEdgeIt
    58 
       
    59 \skipline TYPEDEF
       
    60 
       
    61 Actually, the macro above would be equivalent with the following
       
    62 <tt>typedef</tt>s.
       
    63 
       
    64 \code
       
    65 typedef ListGraph::Node Node;
       
    66 typedef ListGraph::NodeIt NodeIt;
       
    67 typedef ListGraph::Edge Edge;
       
    68 typedef ListGraph::EdgeIt EdgeIt;
       
    69 typedef ListGraph::OutEdgeIt OutEdgeIt;
       
    70 typedef ListGraph::InEdgeIt InEdgeIt;
       
    71 \endcode
    59 
    72 
    60 \subsection go-alg-main The main() function
    73 \subsection go-alg-main The main() function
    61 
    74 
    62 Well, we are ready to start <tt>main()</tt>.
    75 Well, we are ready to start <tt>main()</tt>.
    63 \skip main
    76 \skip main
   150 
   163 
   151 Finally, we print the obtained orientation. Note, how the different
   164 Finally, we print the obtained orientation. Note, how the different
   152 \c bool values of
   165 \c bool values of
   153 \c rev are transformed into different \ref lemon::Color "RGB color"s
   166 \c rev are transformed into different \ref lemon::Color "RGB color"s
   154 using the class
   167 using the class
   155 \ref lemon::ColorSet "ColorSet"
   168 \ref lemon::Palette "Palette"
   156 and the \ref map_adaptors "map adaptor" called
   169 and the \ref map_adaptors "map adaptor" called
   157 \ref lemon::ComposeMap "composeMap".
   170 \ref lemon::ComposeMap "composeMap".
   158 
   171 
   159 \skip graphToEps
   172 \skip graphToEps
   160 \until run
   173 \until run