Skip to content

Commit

Permalink
[ALGOS-267] 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 a8cae74 commit ae0522e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions GDBMS_ALGO/community/louvain.gsql
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,7 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.community.louvain(
s.setAttr(result_attribute, getvid(s.@community_id))
END,
IF file_path != "" THEN
IF v_type_set.size() == 1 THEN
VERTEX node = s.@community_id,
f.println(s, node)
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;
}

0 comments on commit ae0522e

Please sign in to comment.