Skip to content

Add new query graph for CH routing - #2069

Merged
easbar merged 12 commits into
masterfrom
remove_graph_from_ch_graph
Jun 26, 2020
Merged

easbar merged 12 commits into
masterfrom
remove_graph_from_ch_graph

Conversation

@easbar

@easbar easbar commented Jun 23, 2020 •

Copy link
Copy Markdown
Member

So far we built a QueryGraph on top of CHGraph, which in turn had to implement the Graph interface. In this PR I removed the Graph interface from CHGraph and added a new QueryRoutingCHGraph which serves the same purpose for a RoutingCHGraph as QueryGraph does for the base graph.

With this change it should now be possible to improve/optimize the way RoutingCHGraph stores (CH) edges independently from base graph. For example we can now 'disconnect' also base graph edges which should speed up both CH queries and preparation. Also we no longer need to 'know' that we have to wrap a CHGraph into a QueryGraph before passing it to the routing algorithm factory.

Fixes #1780

Some potential follow-ups:

  • rename CHGraph -> Old/Internal/CHGraph, rename RoutingCHGraph -> CHGraph, rename QueryRoutingCHGraph -> QueryCHGraph (or CHQueryGraph :))
  • more and more remove CHGraph, eventually RoutingCHGraph should be what we store on disk
  • fully decouple (base/virtual)edge states from CH, i.e. remove CHEdgeIteratorState interface from base EdgeIteratorState etc.

@easbar easbar added this to the 2.0 milestone Jun 23, 2020
@easbar

easbar commented Jun 23, 2020 •

Copy link
Copy Markdown
Member Author

There seems to be a bit of a slow down (about 10-20%) for CH alternatives, will try to figure out what this is.

Update: Unfortunately I was not able to reproduce this consistently...

@easbar
easbar merged commit 6f07e5c into master Jun 26, 2020
@easbar
easbar deleted the remove_graph_from_ch_graph branch June 26, 2020 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decouple CHGraph from (Base)Graph functionality

1 participant