diff -r ce885274b754 -r 20b26ee5812b src/lemon/dfs.h
--- a/src/lemon/dfs.h Wed Mar 16 13:25:19 2005 +0000
+++ b/src/lemon/dfs.h Wed Mar 16 16:40:21 2005 +0000
@@ -431,6 +431,40 @@
return *this;
}
+ ///Sets the map indicating if a node is reached.
+
+ ///Sets the map indicating if a node is reached.
+ ///If you don't use this function before calling \ref run(),
+ ///it will allocate one. The destuctor deallocates this
+ ///automatically allocated map, of course.
+ ///\return (*this)
+ Dfs &reachedMap(ReachedMap &m)
+ {
+ if(local_reached) {
+ delete _reached;
+ local_reached=false;
+ }
+ _reached = &m;
+ return *this;
+ }
+
+ ///Sets the map indicating if a node is processed.
+
+ ///Sets the map indicating if a node is processed.
+ ///If you don't use this function before calling \ref run(),
+ ///it will allocate one. The destuctor deallocates this
+ ///automatically allocated map, of course.
+ ///\return (*this)
+ Dfs &processedMap(ProcessedMap &m)
+ {
+ if(local_processed) {
+ delete _processed;
+ local_processed=false;
+ }
+ _processed = &m;
+ return *this;
+ }
+
public:
///\name Execution control
///The simplest way to execute the algorithm is to use