Check GraphVisitorRange for DistanceVisitor.
Clean deadcode.