Skip to content

Validate every stored weight in pagerank_weighted_checked - #14

Merged
arclabs561 merged 1 commit into
mainfrom
feat/decisions-20261031
Oct 31, 2026
Merged

arclabs561 merged 1 commit into
mainfrom
feat/decisions-20261031

Conversation

@arclabs561

Copy link
Copy Markdown
Owner

AdjacencyMatrix::neighbors keeps only w > 0.0, so the weight validator
never saw negative or NaN entries and pagerank_weighted_checked accepted
them. Add a defaulted WeightedGraph::stored_weights (default: edge_weight
over neighbors); AdjacencyMatrix overrides it to return the full row, and
the validator uses it. Other algorithms are unchanged.

Checks: fmt, check --no-default-features, clippy -D warnings, tests,
doctests, rustdoc -D warnings, cargo semver-checks (no update required).
The new test fails with the validator on neighbors.

https://claude.ai/code/session_01UJZpXWPEdKXLtAA19wY4Sh

AdjacencyMatrix::neighbors keeps only w > 0.0, so the weight validator
never saw negative or NaN entries and pagerank_weighted_checked accepted
them. Add a defaulted WeightedGraph::stored_weights (default: edge_weight
over neighbors); AdjacencyMatrix overrides it to return the full row, and
the validator uses it. Other algorithms are unchanged.

Checks: fmt, check --no-default-features, clippy -D warnings, tests,
doctests, rustdoc -D warnings, cargo semver-checks (no update required).
The new test fails with the validator on neighbors.

Claude-Session: https://claude.ai/code/session_01UJZpXWPEdKXLtAA19wY4Sh
@arclabs561
arclabs561 merged commit 8cd1537 into main Oct 31, 2026
2 checks passed
@arclabs561
arclabs561 deleted the feat/decisions-20261031 branch October 31, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant