Package ghidra.graph

Class DefaultGEdge<V>

java.lang.Object
ghidra.graph.DefaultGEdge<V>
All Implemented Interfaces:
GEdge<V>
Direct Known Subclasses:
CodeBlockEdge, MutableGDirectedGraphWrapper.DummyEdge

public class DefaultGEdge<V> extends Object implements GEdge<V>
  • Constructor Details

    • DefaultGEdge

      public DefaultGEdge(V start, V end)
  • Method Details

    • getStart

      public V getStart()
      Description copied from interface: GEdge
      Get the start, or tail, of the edge

      In the edge x -> y, x is the start

      Specified by:
      getStart in interface GEdge<V>
      Returns:
      the start
    • getEnd

      public V getEnd()
      Description copied from interface: GEdge
      Get the end, or head, of the edge

      In the edge x -> y, y is the end

      Specified by:
      getEnd in interface GEdge<V>
      Returns:
      the end
    • toString

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object