maximal element in hasse diagram