@Override
	public int compareTo(Vertex v) {
		long difference = (v.key() - this.key);
		if (difference < 0) {
			return -1;
		}
		else if (difference == 0) {
			return 0;
		}
		else {
			return 1;
		}
	}
Compares two vertices by keys. If the specified object o is not a Vertex a
ClassCastException will be thrown.
Ghidra/Framework/Generic/src/main/java/ghidra/util/graph/Vertex.java