You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Graph sorting should be internal to the graph #1773
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.
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).
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.
Activity
karussell commentedon Apr 17, 2020
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).
easbar commentedon Apr 17, 2020
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.