Skip to content

Commit ccd260f

Browse files
authored
Merge pull request #147 from tigergraph/GML-1628
[GML-1628] fix(algs): fix weighted pagerank to return scores for all nodes;
2 parents e48be02 + 1b7c65a commit ccd260f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ IF file_path != "" THEN
9090
f.println("Vertex_ID", "PageRank");
9191
END;
9292

93+
V_all = {v_type};
9394
V = SELECT s
94-
FROM Start:s
95+
FROM V_all:s
9596
POST-ACCUM
9697
IF result_attribute != "" THEN
9798
s.setAttr(result_attribute, s.@sum_score)

0 commit comments

Comments
 (0)