Exception in thread "main" java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:410)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at scala.collection.SeqLike$class.sorted(SeqLike.scala:615)
at scala.collection.AbstractSeq.sorted(Seq.scala:40)
at ml.wolfe.MaxProduct$.apply(MaxProduct.scala:22)
Seems as if EdgeOrdering violates the contract of Java's Comparable interface.
I get the following exception during
MaxProduct
Seems as if
EdgeOrdering
violates the contract of Java'sComparable
interface.