Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of many graph nodes at the same location #111

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Commits on Jul 24, 2024

  1. Fix handling of many graph nodes at the same location

    When nodes have the same location, their distance to each other is 0.
    And, their distance to all their neighbors is the same. In the case
    with few maximum neighbors this can cause problems because the nodes
    end up linking to each other and getting cut off from the rest of
    the graph.
    
    We fix this by introducing a secondary "tie break" distance between
    nodes at the same location (based on on-disk distance). That's
    used to create a secondary ordering for equivalent nodes and allows
    the prune function to then properly cut away equivalent nodes so
    that your neighbor list doesn't get full of them.
    
    Note with SBQ, equivalence classes are actually not /so/ rare especially
    with low dimension counts.
    cevian committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c79ab00 View commit details
    Browse the repository at this point in the history