Source code: com/port80/graph/algorithm/IEdgeWalker.java
1 //
2 // Copyright(c) 2002, Chris Leung
3 //
4
5 package com.port80.graph.algorithm;
6
7 import java.util.*;
8 import com.port80.graph.*;
9
10 /** Graph edge walker interface. Superinterface for various graph
11 * transveral algorithms to visit vertex.
12 */
13 public interface IEdgeWalker {
14
15 ////////////////////////////////////////////////////////////////////////
16
17 /** @return Edges visited in visit order. */
18 List walk(IVertex v);
19 Object walk(IVertex v, IEdgeVisitor visitor, Object data);
20
21 ////////////////////////////////////////////////////////////////////////
22
23 }
24