The following
SQL query pattern can be used to find the shortest path (distance) between the
source and the destination.† (This SQL pattern
can also excludes some of the paths from the distance calculation based on the
userís requirement)