Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all node ids are populated into the patfinder result object #2

Open
mkv123 opened this issue May 13, 2020 · 0 comments
Open

Not all node ids are populated into the patfinder result object #2

mkv123 opened this issue May 13, 2020 · 0 comments

Comments

@mkv123
Copy link

mkv123 commented May 13, 2020

Had a bug where not all node ids were being populated. The edges were correct and the few nodes I found were correct, but my assumption that (result.nodes.length === result.ids.length + 1) isn't always true.

I'm currently work-arounding it by detecting the problem and then populating the nodes array myself based on what is in the edges. My network is one directional and uses the manual (non geojson based) api.

My random guess is that the nodes are based on the contracted network while the edges is based on the real network.

I'd like to leave this bug here even thought I haven't managed to create a very small test case for this yet, so if someone else runs into the issue, they can see my workaround and perhaps add more information from their own debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant