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

List of nodes #1

Open
mardukevich opened this issue May 4, 2019 · 1 comment
Open

List of nodes #1

mardukevich opened this issue May 4, 2019 · 1 comment

Comments

@mardukevich
Copy link

Previosly i asked you on https://medium.com/octavian-ai/finding-shortest-paths-with-graph-networks-807c5bbfc9c8 , but you didn't answer. Is this neural network can return the path ? I mean the list of nodes, not just a count of nodes. Maybe i didn’t understand something.

@TianrenWang
Copy link

TianrenWang commented May 27, 2019

This specific example cannot return you the list of nodes because the answer the network was trained on was the count of nodes. However I believe it is possible to return the actual path of the shortest path by replacing all of the answers with the result from running every graph in the dataset with Dijkstra's algorithm.

EDIT: TLDR

  1. Run Dijkstra's algorithm on every graph used for training and get the list of nodes
  2. Replace the answer to every question with the list of nodes you got in step 1.

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

2 participants