lemon/dfs.h
changeset 1948 9e9c035a08be
parent 1875 98698b69a902
child 1956 a055123339d5
equal deleted inserted replaced
23:d192001e1569 24:ca80be4ac564
  1440 
  1440 
  1441     /// \brief Runs %DFS algorithm from node \c s.
  1441     /// \brief Runs %DFS algorithm from node \c s.
  1442     ///
  1442     ///
  1443     /// This method runs the %DFS algorithm from a root node \c s.
  1443     /// This method runs the %DFS algorithm from a root node \c s.
  1444     /// \note d.run(s) is just a shortcut of the following code.
  1444     /// \note d.run(s) is just a shortcut of the following code.
  1445     /// \code
  1445     ///\code
  1446     ///   d.init();
  1446     ///   d.init();
  1447     ///   d.addSource(s);
  1447     ///   d.addSource(s);
  1448     ///   d.start();
  1448     ///   d.start();
  1449     /// \endcode
  1449     ///\endcode
  1450     void run(Node s) {
  1450     void run(Node s) {
  1451       init();
  1451       init();
  1452       addSource(s);
  1452       addSource(s);
  1453       start();
  1453       start();
  1454     }
  1454     }