Return True if the linkage passed is monotonic.
The linkage is monotonic if for every cluster \(s\) and \(t\) joined, the distance between them is no less than the distance between any previously joined clusters.
- Z : ndarray
The linkage matrix to check for monotonicity.
- b : bool
A boolean indicating whether the linkage is monotonic.