Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 394a430a5f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
7b8e3c3 to
9074fa5
Compare
Review summary (R1, FULL)Verdict: no Critical or Important defects introduced by this PR. There is one Minor test gap and no blocker. Reviewed: Score: 9.8 / 10 (mean of all 4 scored reviews: 9.75)
Confirmed:
Uncertain: none. Earlier thread: the reviewers checked that the head handles the mixed zero-weight edge panic. Pre-existing, not scored: on the base branch, the generic Checks: with Go 1.23.7, |
Summary
This is a stacked correctness PR on top of #25. It closes deterministic Louvain failures without changing the normal positive-weight optimization path.
Problems fixed
Empty and zero-weight graphs
Both Louvain variants divided
resolutionby the total effective edge weight. For an empty graph, an isolated-only graph, or a weighted graph whose edges all have weight0, that denominator is0.The result is now defined explicitly:
0;Invalid numeric parameters
The following values are rejected before computation:
louvain.resolution <= 0,NaN, orInf;louvain.threshold < 0,NaN, orInf;louvain.step <= 0.Invalid weighted edges
Weighted Louvain now:
int32andfloat32weights.Before / after
Regression coverage
Tests now exercise real worker lifecycle paths rather than only helpers:
Init()→BeforeStep()with zero edges;Init()→BeforeStep()with zero effective weight;0, ready output, cleared temporary adjacency, andfirstStep=false;NaN, and±Infedge weights through the real weightedInit()path;The ORG review request for lifecycle and invalid-edge coverage has been addressed and resolved.
Scope
Validation
Latest head
43a37c8passed:Vermeer CIrun 83;CodeQLrun 103;license checkerrun 129.Upstream: 🔗 ASF Computer #373