- adding definition for completeness.
PR: Obtained from: Submitted by: Reviewed by: PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/graph/trunk@144582 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
970acd984f
commit
c7962890a3
1 file changed
+8
-1
@@ -59,8 +59,15 @@ import org.apache.commons.graph.visitor.Visitor;
|
||||
/**
|
||||
* Visit graph with depth first search and mark discovery and finishing time in all
|
||||
* vertices.
|
||||
*
|
||||
* Definition of a DFS:
|
||||
* (1) Any search algorithm which considers outgoing edges of a vertex before
|
||||
* any neighbors of the vertex, that is, outgoing edges of the vertex's predecessor in
|
||||
* the search. Extremes are searched first. This is easily implemented with recursion.
|
||||
* (2) An algorithm which marks all vertices in a directed graph in the order they are
|
||||
* discovered and finished, partitioning the graph into a forest.
|
||||
*
|
||||
* @version $Id: DFS.java,v 1.2 2001/11/29 14:17:33 jvanzyl Exp $
|
||||
* @version $Id: DFS.java,v 1.3 2001/12/01 19:02:07 jvanzyl Exp $
|
||||
* @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
|
||||
*/
|
||||
public class DFS extends TraversalOrder {
|
||||
|
||||
Reference in new issue
Block a user