Skip to content

Compute Yifan Hu's Reset distance from the visible graph - #3375

Merged
mbastian merged 1 commit into
masterfrom
fix/yifanhu-reset-distance
Oct 29, 2026
Merged

mbastian merged 1 commit into
masterfrom
fix/yifanhu-reset-distance

Conversation

@mbastian

Copy link
Copy Markdown
Member

Description

Yifan Hu's Reset computed the optimal distance from the graph of its last run. A filter may have destroyed the view of that graph since, and once more than 8 views were destroyed after it, graphstore emptied it. The average edge length was then 0, so the optimal distance and the step were 0 and Yifan Hu never moved a node again.

Reset now computes it from the visible graph, fetched under the read lock. Before any run, Reset still sets 100.

Checklist

  • Merged with master beforehand

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed

Added to documentation?

  • 👍 README.md
  • 👍 API Changes
  • 👍 Additional documentation in docs
  • 👍 Relevant code documentation
  • 🙅 no, because they aren’t needed

🤖 Generated with Claude Code

Reset used the graph of the last run, whose view may have been emptied since
(a filter destroyed it). The average edge length, and so the optimal
distance and the step, were then 0 and Yifan Hu never moved a node again.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mbastian
mbastian requested a review from a team as a code owner October 29, 2026 19:14
@mbastian mbastian added this to the 0.11.4 milestone Oct 29, 2026
@mbastian
mbastian merged commit af16a7a into master Oct 29, 2026
3 checks passed
@mbastian
mbastian deleted the fix/yifanhu-reset-distance branch November 17, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant