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

Typo in the gsql of a-star algorithm #129

Open
boopalanjayaraman opened this issue Apr 19, 2022 · 0 comments
Open

Typo in the gsql of a-star algorithm #129

boopalanjayaraman opened this issue Apr 19, 2022 · 0 comments

Comments

@boopalanjayaraman
Copy link

Hi All,

I was trying to install and run a-star algorithm's GSQL for the tigergraph's graph for all challenge.

But I came across a semantic error saying - "path_Tuple" not found.

Below is how the code looked like:

TYPEDEF TUPLE<FLOAT dist, VERTEX v> pathTuple;    # <shotest distance, parent node>
HeapAccum<path_Tuple>(1, dist ASC) @@find_min_v_heap;  # retain 1 shortest path
HeapAccum<path_Tuple>(1, dist ASC) @min_dist_heap;

...
s.@min_dist_heap = path_Tuple(0,s);

We can see above that the tuple has been defined as pathTuple but it is being referred as path_Tuple right below (with an underscore) which leads to this error.

https://github.com/tigergraph/gsql-graph-algorithms/blob/d41cfc0096fe39fd814dbf55fdf8ed62ea95e1c9/algorithms/Path/astar_shortest_path/tg_astar.gsql

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