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

issues in louvain parallel #2

Closed dreamerlzl closed 2 years ago

dreamerlzl commented 5 years ago

I have two vertex types, user and player. When I try to install the Louvain Method with Parallelism and Refinement for the vertex type user only, it says this: Type Check Error in query louvain_parallel_file (TYP-162): line 227, col 16 'S' is initialized to vertex type (vt) [user], but the new DML block produces vt [user, player], which is not a subset of the initial vts. I have viewed the source but I still don't know how to fix this. Thanks for any suggestion!

Suxiaocai commented 5 years ago

Are you traversing on all edges? It seems that S is initialized to take user type of vertex, but then after traversal you also add player type of vertices in it. If you want to run louvain on user, then the edges used in the algorithm should be from user to user, not from user to other vertex types.

emperorz commented 4 years ago

louvain_parallel is missing the template file, so cannot be installed.

Boyu1997 commented 2 years ago

louvain_parallel is updated by https://github.com/tigergraph/gsql-graph-algorithms/pull/41