Skip to content

Commit

Permalink
update degree cent for multiple edges
Browse files Browse the repository at this point in the history
  • Loading branch information
RobRossmiller-TG committed Aug 27, 2024
1 parent 28359ea commit b4e5a5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions GDBMS_ALGO/centrality/degree_cent.gsql
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ CREATE TEMPLATE QUERY GDBMS_ALGO.centrality.degree_cent(SET<STRING> v_type_set,
FROM all:s
ACCUM
IF in_degree THEN
s.@sum_degree_score += s.outdegree(reverse_e_type_set)
FOREACH e_type IN reverse_e_type_set DO
s.@sum_degree_score += s.outdegree(e_type)
END
END,
IF out_degree THEN
s.@sum_degree_score += s.outdegree(e_type_set)
FOREACH e_type IN e_type_set DO
s.@sum_degree_score += s.outdegree(e_type)
END
END
POST-ACCUM
IF normalize THEN
Expand Down

0 comments on commit b4e5a5f

Please sign in to comment.