Test that when pathTo is defined, so is shortestPathTo (and vice versa).
Continue searching for shortest path after seeing a visited node.
Merge pull request #13 from garycoady/issue12

Fix shortestPathTo issue after seeing visited node