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

Division by Zero Error when running Louvain Parallel #34

Open Septimmius opened 3 years ago

Septimmius commented 3 years ago

When running Louvain Parallel Algorithm, I encountered the following runtime error:

GSQL > run query louvain_parallel (“Car”, “SIMILAR_TO”, _, _, _, _, _, _, _, _, _) Runtime Error: divider is zero.

I am running Louvain on a monopartite graph with “Car” being the only vertex type and edge “SIMILAR_TO” being the relationships between cars.

I checked the source code and found several places where division took place, but had no clue which division caused the error.

Can someone help me? @Suxiaocai Many thanks!