Avoid self-loops when building expanded neighborhood graph#105
Conversation
|
Was it intentional to commit the lockfile? |
Nothing I do with lockfiles is intentional! |
larsevj
left a comment
There was a problem hiding this comment.
I see the function does not seem to be used or tested anywhere, but might be useful in the future?
|
Oh, I see. Then there should definitely be tests for it... |
single_source_shortest_path_length includes the source node at distance 0, which was adding self-loops to G_expanded. This does not change current fitting behavior because optimize_sparse_affine_kr_map only uses neighbors j < k and still adds the diagonal term explicitly.
gstools is imported by the notebooks and should be available in the default environment.
30ba99b to
a564c5a
Compare
I have added a property test. The commit where I exclude self-loops should not change behavior. "This does not change current fitting behavior because optimize_sparse_affine_kr_map only uses neighbors j < k and still adds the diagonal term explicitly." |
No description provided.