Fix hashCode and equals of edges of mixed graphs.