Class EdgeTraversalEvent<E>

java.lang.Object
java.util.EventObject
org.jgrapht.event.EdgeTraversalEvent<E>
Type Parameters:
E - the graph edge type
All Implemented Interfaces:
Serializable

public class EdgeTraversalEvent<E> extends EventObject
A traversal event for a graph edge.
Author:
Barak Naveh
See Also:
  • Field Details

    • edge

      protected E edge
      The traversed edge.
  • Constructor Details

    • EdgeTraversalEvent

      public EdgeTraversalEvent(Object eventSource, E edge)
      Creates a new EdgeTraversalEvent.
      Parameters:
      eventSource - the source of the event.
      edge - the traversed edge.
  • Method Details

    • getEdge

      public E getEdge()
      Returns the traversed edge.
      Returns:
      the traversed edge.