imbajin commented on issue #358: URL: https://github.com/apache/hugegraph-computer/issues/358#issuecomment-5083149488
Thanks for reporting this. We confirmed that the concern is valid. For an empty graph, the input `SuperstepStat` is still active by default, so PageRank can enter superstep 0 with `totalVertexCount == 0` and perform these floating-point divisions. In Java this produces non-finite values (`Infinity`/`NaN`) rather than an `ArithmeticException`, but the lack of explicit empty-graph handling is still a robustness issue. A reasonable fix with a focused test is welcome. Please make sure the empty-graph behavior is handled explicitly and does not affect the normal PageRank path. As a heads-up, our current development and maintenance focus is mainly on [Vermeer](https://github.com/apache/hugegraph-computer/tree/master/vermeer), the in-memory graph computing engine in this repository. If you are interested in contributing further, Vermeer is the area we especially encourage you to explore and focus on. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
