Analysis of information sources in references of the Wikipedia article "Partially ordered set" in English language version.
A partially ordered set is conveniently represented by a Hasse diagram...
So we can think of every partial order as really being a pair, consisting of a weak partial order and an associated strict one.
A comparison between two elements s, t in S returns one of three distinct values, namely s≤t, s>t or s|t.
compare_elements(x, y): Compare x and y in the poset. If x < y, return −1. If x = y, return 0. If x > y, return 1. If x and y are not comparable, return None.