tigergraph / gsql-graph-algorithms

GSQL Graph Algorithms
https://docs.tigergraph.com/graph-ml/current/intro/
Apache License 2.0
192 stars 70 forks source link

Degree cent #149

Closed RobRossmiller-TG closed 5 months ago

RobRossmiller-TG commented 5 months ago

PR Summary

PR Checklist

What is the behavior change?

Other information:

Related PRs:

wyattjoynertg commented 5 months ago

If we're in the process of changing this query, I do have an optimization for readability and performance. Instead of a FOREACH loop of the edge types, GSQL's outdegree function supports a set of strings as a parameter. If we want to leave this kind of cleanup for another PR, that's fine as well, since it won't affect the output of the implementation.