@Override
	public int compare(AttributedEdge edge1, AttributedEdge edge2) {
		String edgeType1 = edge1.getEdgeType();
		String edgeType2 = edge2.getEdgeType();

		if (edgeType1 == null && edgeType2 == null) {
			return 0;
		}
		if (edgeType1 == null) {
			return 1;
		}
		if (edgeType2 == null) {
			return -1;
		}

		Integer priority1 = renderer.getEdgePriority(edgeType1);
		Integer priority2 = renderer.getEdgePriority(edgeType2);

		return priority1.compareTo(priority2);
	}
Edge comparator that compares edges based on their edge type. The default renderer will use
the order in which the edge types were defined in the {@link GraphType}.
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/EdgeComparator.java