Skip to content

Remove the broken Graphs.weights overload for tensor networks - #201

Merged
mtfishman merged 1 commit into
mainfrom
mf/remove-weights
Oct 3, 2026
Merged

mtfishman merged 1 commit into
mainfrom
mf/remove-weights

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Removes Graphs.weights, which called a one-argument dim that does not exist in this stack. It threw a MethodError for any network with an edge, and nothing called it. Without the overload, Graphs' own weights applies, returning an AbstractMatrix of the kind the NamedGraphs shortest-path algorithms expect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.34%. Comparing base (99ee912) to head (b75dcad).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
+ Coverage   87.19%   88.34%   +1.15%     
==========================================
  Files          16       16              
  Lines         687      678       -9     
==========================================
  Hits          599      599              
+ Misses         88       79       -9     
Flag Coverage Δ
docs 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtfishman
mtfishman enabled auto-merge (squash) October 3, 2026 01:16
@mtfishman
mtfishman merged commit b64bd9f into main Oct 3, 2026
18 checks passed
@mtfishman
mtfishman deleted the mf/remove-weights branch October 3, 2026 01:33
jack-dunham pushed a commit to jack-dunham/ITensorNetworksNext.jl that referenced this pull request Oct 6, 2026
…sor#201)

## Summary

Removes `Graphs.weights`, which called a one-argument `dim` that does
not exist in this stack. It threw a `MethodError` for any network with
an edge, and nothing called it. Without the overload, Graphs' own
`weights` applies, returning an `AbstractMatrix` of the kind the
NamedGraphs shortest-path algorithms expect.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
jack-dunham pushed a commit to jack-dunham/ITensorNetworksNext.jl that referenced this pull request Oct 7, 2026
…sor#201)

## Summary

Removes `Graphs.weights`, which called a one-argument `dim` that does
not exist in this stack. It threw a `MethodError` for any network with
an edge, and nothing called it. Without the overload, Graphs' own
`weights` applies, returning an `AbstractMatrix` of the kind the
NamedGraphs shortest-path algorithms expect.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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