Skip to content

Commit

Permalink
Merge pull request #166 from tigergraph/ALGOS-266
Browse files Browse the repository at this point in the history
[ALGOS-266] feat(algos): Fix bugs for template query;
  • Loading branch information
RobRossmiller-TG authored Jul 22, 2024
2 parents f3fa1f3 + 884833d commit ad97e14
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 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 @@ -170,12 +170,8 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.label_prop(
@@comm_sizes_map += (s.@community_id -> 1)
END,
IF file_path != "" THEN
IF v_type_set.size() == 1 THEN
f.println(s.id, s.@community_id)
ELSE
VERTEX node = s.@community_id,
f.println(s.type, s, node.type, node)
END
VERTEX node = s.@community_id,
f.println(s.type, s, node.type, node)
END
LIMIT print_limit;

Expand Down

0 comments on commit ad97e14

Please sign in to comment.