Package ghidra.util.graph
Class Edge
- java.lang.Object
-
- ghidra.util.graph.Edge
-
- All Implemented Interfaces:
KeyedObject
,java.lang.Comparable<Edge>
public final class Edge extends java.lang.Object implements KeyedObject, java.lang.Comparable<Edge>
An Edge joins a pair of vertices. The from and to vertex of an edge can not be changed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Edge edge)
Compare one edge to another.boolean
equals(java.lang.Object obj)
Overides equals method by comparing keys.Vertex
from()
Returns from vertex.int
hashCode()
long
key()
Returns the key of this edge.Vertex
to()
Returns to vertex.
-
-
-
Method Detail
-
from
public Vertex from()
Returns from vertex.
-
to
public Vertex to()
Returns to vertex.
-
key
public long key()
Returns the key of this edge.- Specified by:
key
in interfaceKeyedObject
-
compareTo
public int compareTo(Edge edge)
Compare one edge to another. Based on time of creation.- Specified by:
compareTo
in interfacejava.lang.Comparable<Edge>
-
equals
public boolean equals(java.lang.Object obj)
Overides equals method by comparing keys.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-