Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gml 1805 weighted degree cent #153

Merged
merged 3 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
52 changes: 27 additions & 25 deletions GDBMS_ALGO/centrality/weighted_degree_cent.gsql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CREATE TEMPLATE QUERY GDBMS_ALGO.centrality.weighted_degree_cent(STRING v_type, STRING e_type, STRING reverse_e_type, string weight_attribute, BOOL in_degree = TRUE, BOOL out_degree = TRUE, INT top_k=100, BOOL print_results = TRUE, STRING result_attribute = "",STRING file_path = "") SYNTAX V1 {

/*
First Author: <First Author Name>
First Commit Date: <First Commit Date>
Expand All @@ -22,18 +21,20 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.centrality.weighted_degree_cent(STRING v_type,
for undirected graph, you only need to set e_type and in_degree

Publications:
<link>
NA

TigerGraph Documentation:
<link>
https://docs.tigergraph.com/graph-ml/current/centrality-algorithms/weighted-degree-centrality

Parameters:
v_type:
vertex types to traverse
Vertex types to traverse
e_type:
edge types to traverse
Edge types to traverse
reverse_e_type:
for indegree use
For indegree use
weight_attribute:
The edge weight attribute name
in_degree:
If True, count incoming relationships
out_degree:
Expand All @@ -43,27 +44,28 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.centrality.weighted_degree_cent(STRING v_type,
print_results:
If True, print the results
result_attribute:
attribute to write result to
Attribute to write result to
file_path:
file to write CSV output to
*/
File to write CSV output to
*/

TYPEDEF TUPLE<VERTEX Vertex_ID, FLOAT score> Vertex_Score;
HeapAccum<Vertex_Score>(top_k, score DESC) @@top_scores_heap;
SumAccum<INT> @sum_degree_score;
SumAccum<FLOAT> @sum_degree_score;
FILE f (file_path);

all = {v_type};
IF in_degree THEN
sll = SELECT s
FROM all:s-(reverse_e_type:e)-:t
ACCUM s.@sum_degree_score+=e.getAttr(weight_attribute,"INT");
FROM all:s -(reverse_e_type:e)- :t
ACCUM s.@sum_degree_score += e.getAttr(weight_attribute, "FLOAT");
END;
IF out_degree THEN
sll = SELECT s
FROM all:s-(e_type:e)-:t
ACCUM s.@sum_degree_score+=e.getAttr(weight_attribute,"INT");
FROM all:s -(e_type:e)- :t
ACCUM s.@sum_degree_score += e.getAttr(weight_attribute, "FLOAT");
END;

#Output
IF file_path != "" THEN
f.println("Vertex_ID", "Degree");
Expand All @@ -72,17 +74,17 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.centrality.weighted_degree_cent(STRING v_type,
Start = SELECT s
FROM all:s
POST-ACCUM
IF result_attribute != "" THEN
s.setAttr(result_attribute, s.@sum_degree_score)
END,

IF print_results THEN
@@top_scores_heap += Vertex_Score(s, s.@sum_degree_score)
END,

IF file_path != "" THEN
f.println(s, s.@sum_degree_score)
END;
IF result_attribute != "" THEN
s.setAttr(result_attribute, s.@sum_degree_score)
END,
IF print_results THEN
@@top_scores_heap += Vertex_Score(s, s.@sum_degree_score)
END,
IF file_path != "" THEN
f.println(s, s.@sum_degree_score)
END;

IF print_results THEN
PRINT @@top_scores_heap AS top_scores;
Expand Down
54 changes: 28 additions & 26 deletions algorithms/Centrality/degree/weighted/tg_weighted_degree_cent.gsql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CREATE QUERY tg_weighted_degree_cent(STRING v_type, STRING e_type, STRING reverse_e_type, string weight_attribute, BOOL in_degree = TRUE, BOOL out_degree = TRUE, INT top_k=100, BOOL print_results = TRUE, STRING result_attribute = "",STRING file_path = "") SYNTAX V1 {

CREATE QUERY tg_weighted_degree_cent(STRING v_type, STRING e_type, STRING reverse_e_type, STRING weight_attribute, BOOL in_degree = TRUE, BOOL out_degree = TRUE, INT top_k=100, BOOL print_results = TRUE, STRING result_attribute = "",STRING file_path = "") SYNTAX V1 {
/*
First Author: <First Author Name>
First Commit Date: <First Commit Date>
Expand All @@ -22,18 +21,20 @@ CREATE QUERY tg_weighted_degree_cent(STRING v_type, STRING e_type, STRING revers
for undirected graph, you only need to set e_type and in_degree

Publications:
<link>
NA

TigerGraph Documentation:
<link>
https://docs.tigergraph.com/graph-ml/current/centrality-algorithms/weighted-degree-centrality

Parameters:
v_type:
vertex types to traverse
Vertex types to traverse
e_type:
edge types to traverse
Edge types to traverse
reverse_e_type:
for indegree use
For indegree use
weight_attribute:
The edge weight attribute name
in_degree:
If True, count incoming relationships
out_degree:
Expand All @@ -43,27 +44,28 @@ CREATE QUERY tg_weighted_degree_cent(STRING v_type, STRING e_type, STRING revers
print_results:
If True, print the results
result_attribute:
attribute to write result to
Attribute to write result to
file_path:
file to write CSV output to
*/
File to write CSV output to
*/

TYPEDEF TUPLE<VERTEX Vertex_ID, FLOAT score> Vertex_Score;
HeapAccum<Vertex_Score>(top_k, score DESC) @@top_scores_heap;
SumAccum<INT> @sum_degree_score;
SumAccum<FLOAT> @sum_degree_score;
FILE f (file_path);

all = {v_type};
IF in_degree THEN
sll = SELECT s
FROM all:s-(reverse_e_type:e)-:t
ACCUM s.@sum_degree_score+=e.getAttr(weight_attribute,"INT");
FROM all:s -(reverse_e_type:e)- :t
ACCUM s.@sum_degree_score += e.getAttr(weight_attribute, "FLOAT");
END;
IF out_degree THEN
sll = SELECT s
FROM all:s-(e_type:e)-:t
ACCUM s.@sum_degree_score+=e.getAttr(weight_attribute,"INT");
FROM all:s -(e_type:e)- :t
ACCUM s.@sum_degree_score += e.getAttr(weight_attribute, "FLOAT");
END;

#Output
IF file_path != "" THEN
f.println("Vertex_ID", "Degree");
Expand All @@ -72,17 +74,17 @@ CREATE QUERY tg_weighted_degree_cent(STRING v_type, STRING e_type, STRING revers
Start = SELECT s
FROM all:s
POST-ACCUM
IF result_attribute != "" THEN
s.setAttr(result_attribute, s.@sum_degree_score)
END,

IF print_results THEN
@@top_scores_heap += Vertex_Score(s, s.@sum_degree_score)
END,

IF file_path != "" THEN
f.println(s, s.@sum_degree_score)
END;
IF result_attribute != "" THEN
s.setAttr(result_attribute, s.@sum_degree_score)
END,
IF print_results THEN
@@top_scores_heap += Vertex_Score(s, s.@sum_degree_score)
END,
IF file_path != "" THEN
f.println(s, s.@sum_degree_score)
END;

IF print_results THEN
PRINT @@top_scores_heap AS top_scores;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"top_scores": [{"Vertex_ID": "A", "score": 70.0}, {"Vertex_ID": "B", "score": 36.0}, {"Vertex_ID": "C", "score": 99.0}, {"Vertex_ID": "D", "score": 105.0}, {"Vertex_ID": "E", "score": 33.0}, {"Vertex_ID": "F", "score": 20.0}, {"Vertex_ID": "G", "score": 84.0}, {"Vertex_ID": "H", "score": 109.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "A", "score": 190}, {"Vertex_ID": "M", "score": 44}, {"Vertex_ID": "T", "score": 35}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "H", "score": 25}, {"Vertex_ID": "P", "score": 24}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "S", "score": 16}, {"Vertex_ID": "B", "score": 10}, {"Vertex_ID": "G", "score": 8}, {"Vertex_ID": "L", "score": 6}, {"Vertex_ID": "D", "score": 5}, {"Vertex_ID": "J", "score": 4}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "E", "score": -3}, {"Vertex_ID": "Q", "score": -7}, {"Vertex_ID": "K", "score": -8}, {"Vertex_ID": "R", "score": -9}, {"Vertex_ID": "F", "score": -10}]}]
[{"top_scores": [{"Vertex_ID": "A", "score": 190.0}, {"Vertex_ID": "B", "score": 10.0}, {"Vertex_ID": "C", "score": 2.0}, {"Vertex_ID": "D", "score": 5.0}, {"Vertex_ID": "E", "score": -3.0}, {"Vertex_ID": "F", "score": -10.0}, {"Vertex_ID": "G", "score": 8.0}, {"Vertex_ID": "H", "score": 25.0}, {"Vertex_ID": "I", "score": 31.0}, {"Vertex_ID": "J", "score": 4.0}, {"Vertex_ID": "K", "score": -8.0}, {"Vertex_ID": "L", "score": 6.0}, {"Vertex_ID": "M", "score": 44.0}, {"Vertex_ID": "N", "score": 17.0}, {"Vertex_ID": "O", "score": 0.0}, {"Vertex_ID": "P", "score": 24.0}, {"Vertex_ID": "Q", "score": -7.0}, {"Vertex_ID": "R", "score": -9.0}, {"Vertex_ID": "S", "score": 16.0}, {"Vertex_ID": "T", "score": 35.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "J", "score": 74}, {"Vertex_ID": "E", "score": 71}, {"Vertex_ID": "K", "score": 52}, {"Vertex_ID": "N", "score": 48}, {"Vertex_ID": "F", "score": 47}, {"Vertex_ID": "D", "score": 35}, {"Vertex_ID": "O", "score": 33}, {"Vertex_ID": "I", "score": 30}, {"Vertex_ID": "Q", "score": 26}, {"Vertex_ID": "R", "score": 17}, {"Vertex_ID": "T", "score": 15}, {"Vertex_ID": "S", "score": 7}, {"Vertex_ID": "C", "score": 6}, {"Vertex_ID": "A", "score": 5}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "B", "score": 4}, {"Vertex_ID": "P", "score": 3}, {"Vertex_ID": "H", "score": -2}, {"Vertex_ID": "G", "score": -6}, {"Vertex_ID": "L", "score": -12}]}]
[{"top_scores": [{"Vertex_ID": "A", "score": 5.0}, {"Vertex_ID": "B", "score": 4.0}, {"Vertex_ID": "C", "score": 6.0}, {"Vertex_ID": "D", "score": 35.0}, {"Vertex_ID": "E", "score": 71.0}, {"Vertex_ID": "F", "score": 47.0}, {"Vertex_ID": "G", "score": -6.0}, {"Vertex_ID": "H", "score": -2.0}, {"Vertex_ID": "I", "score": 30.0}, {"Vertex_ID": "J", "score": 74.0}, {"Vertex_ID": "K", "score": 52.0}, {"Vertex_ID": "L", "score": -12.0}, {"Vertex_ID": "M", "score": 5.0}, {"Vertex_ID": "N", "score": 48.0}, {"Vertex_ID": "O", "score": 33.0}, {"Vertex_ID": "P", "score": 3.0}, {"Vertex_ID": "Q", "score": 26.0}, {"Vertex_ID": "R", "score": 17.0}, {"Vertex_ID": "S", "score": 7.0}, {"Vertex_ID": "T", "score": 15.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "I", "score": 21}, {"Vertex_ID": "A", "score": 21}, {"Vertex_ID": "P", "score": 20}, {"Vertex_ID": "E", "score": 18}, {"Vertex_ID": "H", "score": 18}, {"Vertex_ID": "M", "score": 18}, {"Vertex_ID": "T", "score": 18}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "J", "score": 15}, {"Vertex_ID": "O", "score": 14}, {"Vertex_ID": "R", "score": 14}, {"Vertex_ID": "S", "score": 13}, {"Vertex_ID": "Q", "score": 11}, {"Vertex_ID": "G", "score": 11}, {"Vertex_ID": "F", "score": 6}, {"Vertex_ID": "D", "score": 6}, {"Vertex_ID": "B", "score": 3}, {"Vertex_ID": "L", "score": 2}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "K", "score": -7}]}]
[{"top_scores": [{"Vertex_ID": "A", "score": 21.0}, {"Vertex_ID": "B", "score": 3.0}, {"Vertex_ID": "T", "score": 18.0}, {"Vertex_ID": "C", "score": -1.0}, {"Vertex_ID": "D", "score": 6.0}, {"Vertex_ID": "E", "score": 18.0}, {"Vertex_ID": "F", "score": 6.0}, {"Vertex_ID": "G", "score": 11.0}, {"Vertex_ID": "H", "score": 18.0}, {"Vertex_ID": "I", "score": 21.0}, {"Vertex_ID": "J", "score": 15.0}, {"Vertex_ID": "K", "score": -7.0}, {"Vertex_ID": "L", "score": 2.0}, {"Vertex_ID": "M", "score": 18.0}, {"Vertex_ID": "N", "score": 17.0}, {"Vertex_ID": "O", "score": 14.0}, {"Vertex_ID": "P", "score": 20.0}, {"Vertex_ID": "Q", "score": 11.0}, {"Vertex_ID": "R", "score": 14.0}, {"Vertex_ID": "S", "score": 13.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "G", "score": 83}, {"Vertex_ID": "C", "score": 73}, {"Vertex_ID": "I", "score": 59}, {"Vertex_ID": "S", "score": 33}, {"Vertex_ID": "E", "score": 29}, {"Vertex_ID": "D", "score": 29}, {"Vertex_ID": "J", "score": 24}, {"Vertex_ID": "O", "score": 21}, {"Vertex_ID": "F", "score": 17}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "P", "score": 11}, {"Vertex_ID": "B", "score": 8}, {"Vertex_ID": "T", "score": 7}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "H", "score": 5}, {"Vertex_ID": "K", "score": 4}, {"Vertex_ID": "A", "score": 3}, {"Vertex_ID": "R", "score": -5}, {"Vertex_ID": "Q", "score": -6}, {"Vertex_ID": "L", "score": -10}]}]
[{"top_scores": [{"Vertex_ID": "A", "score": 3.0}, {"Vertex_ID": "B", "score": 8.0}, {"Vertex_ID": "C", "score": 73.0}, {"Vertex_ID": "D", "score": 29.0}, {"Vertex_ID": "E", "score": 29.0}, {"Vertex_ID": "F", "score": 17.0}, {"Vertex_ID": "G", "score": 83.0}, {"Vertex_ID": "H", "score": 5.0}, {"Vertex_ID": "I", "score": 59.0}, {"Vertex_ID": "J", "score": 24.0}, {"Vertex_ID": "K", "score": 4.0}, {"Vertex_ID": "L", "score": -10.0}, {"Vertex_ID": "M", "score": 5.0}, {"Vertex_ID": "N", "score": 12.0}, {"Vertex_ID": "O", "score": 21.0}, {"Vertex_ID": "P", "score": 11.0}, {"Vertex_ID": "Q", "score": -6.0}, {"Vertex_ID": "R", "score": -5.0}, {"Vertex_ID": "S", "score": 33.0}, {"Vertex_ID": "T", "score": 7.0}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"top_scores": [{"Vertex_ID": "A", "score": 79.0}, {"Vertex_ID": "B", "score": 75.0}, {"Vertex_ID": "C", "score": 116.0}, {"Vertex_ID": "D", "score": 80.0}, {"Vertex_ID": "E", "score": 81.0}, {"Vertex_ID": "F", "score": 17.0}, {"Vertex_ID": "G", "score": 96.0}, {"Vertex_ID": "H", "score": 90.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "M", "score": 44}, {"Vertex_ID": "T", "score": 35}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "H", "score": 25}, {"Vertex_ID": "P", "score": 24}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "S", "score": 16}, {"Vertex_ID": "B", "score": 10}, {"Vertex_ID": "G", "score": 8}, {"Vertex_ID": "L", "score": 6}, {"Vertex_ID": "D", "score": 5}, {"Vertex_ID": "J", "score": 4}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "E", "score": -3}, {"Vertex_ID": "Q", "score": -7}, {"Vertex_ID": "K", "score": -8}, {"Vertex_ID": "R", "score": -9}, {"Vertex_ID": "F", "score": -10}]}]
[{"top_scores": [{"Vertex_ID": "B", "score": 10.0}, {"Vertex_ID": "C", "score": 2.0}, {"Vertex_ID": "D", "score": 5.0}, {"Vertex_ID": "E", "score": -3.0}, {"Vertex_ID": "F", "score": -10.0}, {"Vertex_ID": "G", "score": 8.0}, {"Vertex_ID": "H", "score": 25.0}, {"Vertex_ID": "I", "score": 31.0}, {"Vertex_ID": "J", "score": 4.0}, {"Vertex_ID": "K", "score": -8.0}, {"Vertex_ID": "L", "score": 6.0}, {"Vertex_ID": "M", "score": 44.0}, {"Vertex_ID": "N", "score": 17.0}, {"Vertex_ID": "O", "score": 0.0}, {"Vertex_ID": "P", "score": 24.0}, {"Vertex_ID": "Q", "score": -7.0}, {"Vertex_ID": "R", "score": -9.0}, {"Vertex_ID": "S", "score": 16.0}, {"Vertex_ID": "T", "score": 35.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "K", "score": 52}, {"Vertex_ID": "F", "score": 43}, {"Vertex_ID": "O", "score": 31}, {"Vertex_ID": "E", "score": 28}, {"Vertex_ID": "R", "score": 25}, {"Vertex_ID": "J", "score": 22}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "T", "score": 15}, {"Vertex_ID": "I", "score": 8}, {"Vertex_ID": "D", "score": 7}, {"Vertex_ID": "B", "score": 5}, {"Vertex_ID": "G", "score": 4}, {"Vertex_ID": "P", "score": 2}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "S", "score": -8}, {"Vertex_ID": "H", "score": -10}, {"Vertex_ID": "M", "score": -12}]}]
[{"top_scores": [{"Vertex_ID": "B", "score": 5.0}, {"Vertex_ID": "C", "score": -1.0}, {"Vertex_ID": "D", "score": 7.0}, {"Vertex_ID": "E", "score": 28.0}, {"Vertex_ID": "F", "score": 43.0}, {"Vertex_ID": "G", "score": 4.0}, {"Vertex_ID": "H", "score": -10.0}, {"Vertex_ID": "I", "score": 8.0}, {"Vertex_ID": "J", "score": 22.0}, {"Vertex_ID": "K", "score": 52.0}, {"Vertex_ID": "L", "score": 0.0}, {"Vertex_ID": "M", "score": -12.0}, {"Vertex_ID": "N", "score": 17.0}, {"Vertex_ID": "O", "score": 31.0}, {"Vertex_ID": "P", "score": 2.0}, {"Vertex_ID": "Q", "score": 1.0}, {"Vertex_ID": "R", "score": 25.0}, {"Vertex_ID": "S", "score": -8.0}, {"Vertex_ID": "T", "score": 15.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "A", "score": 19}, {"Vertex_ID": "J", "score": 18}, {"Vertex_ID": "H", "score": 15}, {"Vertex_ID": "S", "score": 14}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "Q", "score": 11}, {"Vertex_ID": "F", "score": 10}, {"Vertex_ID": "P", "score": 9}, {"Vertex_ID": "E", "score": 8}, {"Vertex_ID": "M", "score": 6}, {"Vertex_ID": "O", "score": 5}, {"Vertex_ID": "I", "score": 3}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "T", "score": -1}, {"Vertex_ID": "D", "score": -2}, {"Vertex_ID": "K", "score": -3}, {"Vertex_ID": "G", "score": -4}, {"Vertex_ID": "L", "score": -4}]}]
[{"top_scores": [{"Vertex_ID": "B", "score": 2.0}, {"Vertex_ID": "C", "score": 1.0}, {"Vertex_ID": "D", "score": -2.0}, {"Vertex_ID": "E", "score": 8.0}, {"Vertex_ID": "F", "score": 10.0}, {"Vertex_ID": "G", "score": -4.0}, {"Vertex_ID": "H", "score": 15.0}, {"Vertex_ID": "I", "score": 3.0}, {"Vertex_ID": "J", "score": 18.0}, {"Vertex_ID": "K", "score": -3.0}, {"Vertex_ID": "L", "score": -4.0}, {"Vertex_ID": "M", "score": 6.0}, {"Vertex_ID": "N", "score": 12.0}, {"Vertex_ID": "O", "score": 5.0}, {"Vertex_ID": "P", "score": 9.0}, {"Vertex_ID": "Q", "score": 11.0}, {"Vertex_ID": "R", "score": 0.0}, {"Vertex_ID": "S", "score": 14.0}, {"Vertex_ID": "T", "score": -1.0}, {"Vertex_ID": "A", "score": 19.0}]}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"top_scores": [{"Vertex_ID": "G", "score": 50}, {"Vertex_ID": "S", "score": 33}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "F", "score": 22}, {"Vertex_ID": "O", "score": 21}, {"Vertex_ID": "J", "score": 17}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "P", "score": 11}, {"Vertex_ID": "E", "score": 8}, {"Vertex_ID": "T", "score": 7}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "K", "score": 4}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "D", "score": -2}, {"Vertex_ID": "R", "score": -5}, {"Vertex_ID": "Q", "score": -6}, {"Vertex_ID": "L", "score": -10}]}]
[{"top_scores": [{"Vertex_ID": "B", "score": 2.0}, {"Vertex_ID": "C", "score": 1.0}, {"Vertex_ID": "D", "score": -2.0}, {"Vertex_ID": "E", "score": 8.0}, {"Vertex_ID": "F", "score": 22.0}, {"Vertex_ID": "G", "score": 50.0}, {"Vertex_ID": "H", "score": 0.0}, {"Vertex_ID": "I", "score": 31.0}, {"Vertex_ID": "J", "score": 17.0}, {"Vertex_ID": "K", "score": 4.0}, {"Vertex_ID": "L", "score": -10.0}, {"Vertex_ID": "M", "score": 5.0}, {"Vertex_ID": "N", "score": 12.0}, {"Vertex_ID": "O", "score": 21.0}, {"Vertex_ID": "P", "score": 11.0}, {"Vertex_ID": "Q", "score": -6.0}, {"Vertex_ID": "R", "score": -5.0}, {"Vertex_ID": "S", "score": 33.0}, {"Vertex_ID": "T", "score": 7.0}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"top_scores": [{"Vertex_ID": "A", "score": 68.0}, {"Vertex_ID": "B", "score": 51.0}, {"Vertex_ID": "C", "score": 61.0}, {"Vertex_ID": "D", "score": 168.0}, {"Vertex_ID": "E", "score": 67.0}, {"Vertex_ID": "F", "score": 80.0}, {"Vertex_ID": "G", "score": 114.0}, {"Vertex_ID": "H", "score": 25.0}]}]
Loading
Loading