Class 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 java.lang.Object
    • Constructor Detail

      • 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 Detail

      • getSource

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