*/
package org.wamblee.system.graph;
+/**
+ * Visitor of a graph.
+ * @author Erik Brakkee.
+ *
+ */
public interface Visitor {
+ /**
+ * Visits a node. Called by {@link Graph#accept(Visitor)}.
+ * @param aNode Node to visit.
+ */
void visitNode(Node aNode);
+ /**
+ * Visits a node. Called by {@link Graph#accept(Visitor)}.
+ * @param aEdge Edge to visit.
+ */
void visitEdge(Edge aEdge);
}