alibaba / GraphScope

🔨 🍇 💻 🚀 GraphScope: A One-Stop Large-Scale Graph Computing System from Alibaba | 一站式图计算系统
https://graphscope.io
Apache License 2.0
3.29k stars 444 forks source link

In pregel programming model, how does the static method Combine work #3783

Open dongxudongxu opened 5 months ago

dongxudongxu commented 5 months ago

I check your document "06_writing_your_own_algorithms.ipynb", it says

### 可选的 Combiner 函数
我们可以定义一个 Combiner 以减少消息通信的开销,注意这个 Combiner 函数是可选的,您也可以不实现。

It's unclear for me, how to correctly define a Combiner in detail, and how to use it in the static method Compute? Thanks for your attention and help, looking forward to your reply

welcome[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the issue template! And a maintainer will get back to you shortly! Please feel free to contact us on DingTalk, WeChat account(graphscope) or Slack. We are happy to answer your questions responsively.