Class 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:
    Serialized Form
    • Field Detail

      • vertex

        protected V vertex
        The traversed vertex.
    • Constructor Detail

      • VertexTraversalEvent

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

      • getVertex

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