equal
deleted
inserted
replaced
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 } |