Skip to content

Commit

Permalink
[ALGOS-266] feat(algos): Fix bugs for template query;
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanleilin committed Jul 22, 2024
1 parent 0c6d666 commit f783f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GDBMS_ALGO/community/label_prop.gsql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.label_prop(
BOOL print_results = TRUE,
STRING result_attribute = "",
STRING file_path=""
) FOR GRAPH MyGraph SYNTAX V1 {
) SYNTAX V1 {

/*
First Author: [email protected]
Expand Down Expand Up @@ -171,7 +171,8 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.label_prop(
END,
IF file_path != "" THEN
IF v_type_set.size() == 1 THEN
f.println(s.id, s.@community_id)
VERTEX node = s.@community_id,
f.println(s, node)
ELSE
VERTEX node = s.@community_id,
f.println(s.type, s, node.type, node)
Expand Down

0 comments on commit f783f7a

Please sign in to comment.