Class AbstractEdge<N>

java.lang.Object
pascal.taie.util.graph.AbstractEdge<N>
All Implemented Interfaces:
Serializable, Edge<N>
Direct Known Subclasses:
CFGEdge, ICFGEdge

public abstract class AbstractEdge<N> extends Object implements Edge<N>
See Also:
  • Field Details

    • source

      protected final N source
      The source node of the edge.
    • target

      protected final N target
      The target node of the edge.
  • Constructor Details

    • AbstractEdge

      protected AbstractEdge(N source, N target)
  • Method Details

    • source

      public N source()
      Specified by:
      source in interface Edge<N>
      Returns:
      the source node of the edge.
    • target

      public N target()
      Specified by:
      target in interface Edge<N>
      Returns:
      the target node of the edge.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object