shortestPathLength

fun shortestPathLength(from: A, to: A): Int(source)

Hop count of the shortest path from from to to, or -1 if unreachable. Returns 0 when from === to.