Class AbstractGraph

java.lang.Object
org.processmining.models.graphbased.AbstractGraphElement
org.processmining.models.graphbased.AbstractGraph
All Implemented Interfaces:
AttributeMapOwner
Direct Known Subclasses:
AbstractDirectedGraph, AbstractDirectedHypergraph, AbstractUndirectedGraph

public class AbstractGraph extends AbstractGraphElement
  • Field Details

    • id

      protected final NodeID id
  • Constructor Details

    • AbstractGraph

      public AbstractGraph()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • removeNodeFromCollection

      protected <T> T removeNodeFromCollection(Collection<T> collection, T object)
    • getEdges

      protected <T extends AbstractGraphEdge<?, ?>> Collection<T> getEdges(AbstractGraphNode source, AbstractGraphNode target, Collection<T> collection)
      Returns the edges from source to target, contained in the given collection
      Type Parameters:
      T - The type of edges
      Parameters:
      source - the source node
      target - the target node
      collection - the collection of edges to search through
      Returns:
    • removeFromEdges

      protected <T extends AbstractGraphEdge<?, ?>> T removeFromEdges(AbstractGraphNode source, AbstractGraphNode target, Collection<T> collection)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • graphElementAdded

      public void graphElementAdded(Object element)
    • graphElementRemoved

      public void graphElementRemoved(Object element)
    • graphElementChanged

      public void graphElementChanged(Object element)