@Override
	public boolean equals(Object obj) {
		if (obj instanceof Edge) {
			return key == ((Edge) obj).key();
		}
		return false;
	}
Overides equals method by comparing keys.
Ghidra/Framework/Generic/src/main/java/ghidra/util/graph/Edge.java