kth.csc.inda
Interface VertexAction


public interface VertexAction

This interface contains a single act method intended to be called during a traversal of a graph.

Version:
2012-12-30
Author:
Stefan Nilsson

Method Summary
 void act(Graph g, int v)
          An action performed when a search of the graph g visits node v.
 

Method Detail

act

void act(Graph g,
         int v)
An action performed when a search of the graph g visits node v.

Parameters:
g - a graph
v - a vertex in the graph