Skip to content

Graph sorting should be internal to the graph #1773

Closed

Description

@easbar

See discussion in #1757. For example this is needed when we include turn costs, because we also need to sort the TurnCostExtension (related: #1398). This is a bit tricky right now, because BaseGraph only 'sees' the GraphExtension interface, see #1772.

Activity

  1. karussell commented on Apr 17, 2020

    @karussell
    Member

    What exactly is necessary here? Implementing something like graph.sort()? The problem I see with this is that currently sorting requires a new graph and cannot be done inplace (which would be very tricky).

  2. easbar commented on Apr 17, 2020

    @easbar
    MemberAuthor

    Well first of all the method that does the sorting needs to have access to everything that needs to be sorted. Right now this is not the case because it is missing the turn cost storage for example. Second, this will not work the same way for the BaseGraph and the CHGraph, so first these should be decoupled (#1780). Creating a (sorted) copy of the graph I think should be ok, because it will not take more memory than for example CH preparation.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions