Class VertexTraversalEvent<V>

java.lang.Object
java.util.EventObject
org.jgrapht.event.VertexTraversalEvent<V>
Type Parameters:
V - the graph vertex type
All Implemented Interfaces:
Serializable

public class VertexTraversalEvent<V> extends EventObject
A traversal event for a graph vertex.
Author:
Barak Naveh
See Also:
  • Field Details

    • vertex

      protected V vertex
      The traversed vertex.
  • Constructor Details

    • VertexTraversalEvent

      public VertexTraversalEvent(Object eventSource, V vertex)
      Creates a new VertexTraversalEvent.
      Parameters:
      eventSource - the source of the event.
      vertex - the traversed vertex.
  • Method Details

    • getVertex

      public V getVertex()
      Returns the traversed vertex.
      Returns:
      the traversed vertex.