Skip to content

Commit ad97e14

Browse files
Merge pull request #166 from tigergraph/ALGOS-266
[ALGOS-266] feat(algos): Fix bugs for template query;
2 parents f3fa1f3 + 884833d commit ad97e14

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

GDBMS_ALGO/community/label_prop.gsql

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.label_prop(
88
BOOL print_results = TRUE,
99
STRING result_attribute = "",
1010
STRING file_path=""
11-
) FOR GRAPH MyGraph SYNTAX V1 {
11+
) SYNTAX V1 {
1212

1313
/*
1414
First Author: [email protected]
@@ -170,12 +170,8 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.label_prop(
170170
@@comm_sizes_map += (s.@community_id -> 1)
171171
END,
172172
IF file_path != "" THEN
173-
IF v_type_set.size() == 1 THEN
174-
f.println(s.id, s.@community_id)
175-
ELSE
176-
VERTEX node = s.@community_id,
177-
f.println(s.type, s, node.type, node)
178-
END
173+
VERTEX node = s.@community_id,
174+
f.println(s.type, s, node.type, node)
179175
END
180176
LIMIT print_limit;
181177

0 commit comments

Comments
 (0)