Optimize Edge.lexicographicOrdering