[][src]Function ordist::distances::cayley_dist

pub fn cayley_dist<K: OrDistElement>(
    v1: &[K],
    v2: &[K]
) -> Result<usize, OrDistError<K>>

Cayley distance between 2 orders.

The minimum number of procedures to exchange any element of v2 that is required to convert v2 to v1.