Class GraphEvent<V,E>

java.lang.Object
edu.uci.ics.jung.graph.event.GraphEvent<V,E>
Type Parameters:
V - the vertex type
E - the edge type
Direct Known Subclasses:
GraphEvent.Edge, GraphEvent.Vertex

public abstract class GraphEvent<V,E> extends Object
  • Field Details

  • Constructor Details

    • GraphEvent

      public GraphEvent(Graph<V,E> source, GraphEvent.Type type)
      Creates an instance with the specified source graph and Type (vertex/edge addition/removal).
      Parameters:
      source - the graph whose event this is
      type - the type of event this is
  • Method Details

    • getSource

      public Graph<V,E> getSource()
      Returns:
      the source
    • getType

      public GraphEvent.Type getType()
      Returns:
      the type