KHARSHAVARDHAN-eng opened a new issue, #358: URL: https://github.com/apache/hugegraph-computer/issues/358
### Bug Type (问题类型) others (please edit later) ### Before submit - [x] 我已经确认现有的 [Server-Issues](https://github.com/apache/hugegraph-computer/issues) 与 [Computer-Issues](https://github.com/apache/hugegraph-computer/issues) 中没有相同 / 重复问题 ### Environment (环境信息) Repository: apache/hugegraph-computer Branch: master Issue identified during source code review. I have not yet verified it by executing the algorithm. ### Expected & Actual behavior (期望与实际表现) ### Expected Behavior The PageRank implementation should safely handle graphs with zero vertices or explicitly validate this case before performing any division. ### Observation While reviewing the source code, I noticed a calculation that appears to divide by the total vertex count without an obvious check for a zero value. If `totalVertexCount` can become zero, this could potentially result in a division-by-zero exception. I have not yet been able to verify whether this execution path is reachable at runtime. I would appreciate confirmation from the maintainers on whether this scenario is possible or whether there is upstream validation that guarantees the value is always greater than zero. If this is considered a valid issue, I would be happy to work on a fix and submit a pull request. -- 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]
