|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2003, 2005 IBM Corporation and others. |
2 |
* Copyright (c) 2003, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 13-33
Link Here
|
| 13 |
/** |
13 |
/** |
| 14 |
* Performs some action on a Graph. |
14 |
* Performs some action on a Graph. |
| 15 |
* @author Randy Hudson |
15 |
* @author Randy Hudson |
| 16 |
* @since 2.1.2 |
16 |
* @since 3.4 |
| 17 |
*/ |
17 |
*/ |
| 18 |
abstract class GraphVisitor { |
18 |
public abstract class GraphVisitor { |
| 19 |
|
19 |
|
| 20 |
/** |
20 |
/** |
| 21 |
* Act on the given directed graph. |
21 |
* Act on the given directed graph. |
| 22 |
* @param g the graph |
22 |
* @param g the graph |
|
|
23 |
* @since 3.4 |
| 23 |
*/ |
24 |
*/ |
| 24 |
void visit(DirectedGraph g) { } |
25 |
public void visit(DirectedGraph g) { } |
| 25 |
|
26 |
|
| 26 |
/** |
27 |
/** |
| 27 |
* Called in reverse order of visit. |
28 |
* Called in reverse order of visit. |
| 28 |
* @since 3.1 |
|
|
| 29 |
* @param g the graph to act upon |
29 |
* @param g the graph to act upon |
|
|
30 |
* @since 3.4 |
| 30 |
*/ |
31 |
*/ |
| 31 |
void revisit(DirectedGraph g) { } |
32 |
public void revisit(DirectedGraph g) { } |
| 32 |
|
33 |
|
| 33 |
} |
34 |
} |