Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/port80/graph/algorithm/IGraphWalker.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 element transversal interface.
11   *
12   */
13  public interface IGraphWalker {
14  
15      ////////////////////////////////////////////////////////////////////////
16  
17      /** @return List of vertex in visit order. */
18      List walk(IGraphElement e);
19      Object walk(IGraphElement e, IGraphElementVisitor visitor, Object data);
20  
21      ////////////////////////////////////////////////////////////////////////
22  
23  }