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