From 55e2eb54bfc13241dbbe6addbf7caf8a5ab82d45 Mon Sep 17 00:00:00 2001 From: katinar Date: Fri, 12 Apr 2024 12:13:04 -0400 Subject: [PATCH 1/2] GML-1628 updating weighted pagerank --- .../Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql b/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql index 5cdbd993..f6232cb5 100644 --- a/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql +++ b/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql @@ -89,9 +89,9 @@ END; # END WHILE loop IF file_path != "" THEN f.println("Vertex_ID", "PageRank"); END; - +V_all = {v_type}; V = SELECT s - FROM Start:s + FROM V_all:s POST-ACCUM IF result_attribute != "" THEN s.setAttr(result_attribute, s.@sum_score) From 1b7c65a7516175e960608c85b3676feb8892005c Mon Sep 17 00:00:00 2001 From: katinar Date: Fri, 12 Apr 2024 12:14:43 -0400 Subject: [PATCH 2/2] GML-1628 adding spacing --- .../Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql | 1 + 1 file changed, 1 insertion(+) diff --git a/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql b/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql index f6232cb5..2d824e1e 100644 --- a/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql +++ b/algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql @@ -89,6 +89,7 @@ END; # END WHILE loop IF file_path != "" THEN f.println("Vertex_ID", "PageRank"); END; + V_all = {v_type}; V = SELECT s FROM V_all:s