Routing wrong if change edge encoder access at caculate weight edge
NguyenSen opened this issue · comments
Describe the bug
I tried adjusting the access encoder at runtime but there was a problem with the results
To Reproduce
Steps to reproduce the behavior. For examples:
- build graph use landmark
- change access edge in at caculate weighting edge for only access one way fordward (or backward)
- routing use querygraph and landmark then will bug because routing access wrong edge direction
I fixed it by:
update edge at orther thread call edge.set(encoder.access,fase)
I hope it can be adjusted at edge weight calculation
I don't understand your description. Do you have some code or a unit test that reproduces the issue? If you want to use landmarks you need to rebuild the landmarks after you make changes to the graph.
or even better: use a custom model