Skip to content

DijkstraOneToMany cache broken after calcPath(from, to) where from == to #707

Closed

Description

@IsNull

While working on the distance matrix, I stumbled over a little bug in
DijkstraOneToMany. If you invoke DijkstraOneToMany.calcPath(from, to) and from / to is the same node, all future calls to calcPath(from, to) will yield a zero path/distance.

This is obviously a rare case, since it does not really make sense to query for a path to itself, but for the sake of a clean framework I think such edge cases should be handled cleanly anyway.

See the pull request #708 which shows the issue.

Activity

  1. karussell commented on May 4, 2016

    @karussell
    Member

    Fixed via #708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions