Repository navigation
Conversation
Two declines that apply to every dispatched name. A keyword NetworkX added after its oldest supported release is now declined where the installed NetworkX lacks it: hits's method, closeness_centrality's sp and adjacency_matrix's format on 3.6. Such a NetworkX passes the keyword on, and the backend, whose wrappers take it, answered where NetworkX's own function raises TypeError for it. The backend's own keywords, such as chunksize, are taken on any NetworkX. A TypeError from converting an edge attribute's values is now a decline, as scipy's ValueError already was, so NetworkX answers or raises its own error. NetworkX's to_scipy_sparse_array negates the value of an undirected self-loop before scipy sees it, which raises TypeError for a string, bytes, None, a list or an object without arithmetic. A weighted call on such a graph raised that error at the call, where NetworkX often answers, raises a different error, or raises only as its generator is read.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 20-wiener-efficiency #156 +/- ##
========================================================
+ Coverage 92.88% 92.90% +0.02%
========================================================
Files 182 182
Lines 11227 11294 +67
Branches 1274 1281 +7
========================================================
+ Hits 10428 10493 +65
- Misses 546 547 +1
- Partials 253 254 +1 🚀 New features to boost your workflow:
|
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two declines that apply to every dispatched name. Each leaves a call to NetworkX where this backend's answer or error would differ from NetworkX's.
Dispatcher.can_rundeclines a keyword NetworkX added after its oldest supported release (the_NOT_EXTRAtable) when the installed NetworkX lacks it. NetworkX 3.6 passes such a keyword on to the backend, and the wrappers take it, sohits(G, method=...),closeness_centrality(G, sp=None)andadjacency_matrix(G, format=...)were answered there. NetworkX's own function raises TypeError for them, such as "hits() got an unexpected keyword argument 'method'", and now it does. NetworkX 3.7 and the development branch have these keywords and serve them as before.chunksize, are in no NetworkX and are taken on any version.test_signatures_match_nxalready requires every NetworkX keyword newer than 3.6 that a wrapper takes to be in_NOT_EXTRA, so the table is complete. All three are keyword-only in NetworkX, so none can be passed positionally.Dispatcher.convert_from_nxturns a TypeError from converting an edge attribute's values into NotImplementedError, as it already did scipy's ValueError, and NetworkX falls back. NetworkX'sto_scipy_sparse_arraynegates the value of an undirected self-loop before scipy sees it. For a string, bytes, None, a list or an object without arithmetic, that raises "bad operand type for unary -", and before this change a weighted call on such a graph raised it at the call.backend="graphblas"named, such a call now raises NotImplementedError, carrying the TypeError as its cause.google_matrix,volumeandmutual_weight. In those 110, NetworkX answered 14, raised its own error at the call in 91, and raised as the result was read in 5.pagerankmatched before as well, since NetworkX's ownpagerankconverts with the same function and raises the same TypeError._NOT_EXTRAentry of a dispatched name.chunksizeis served on any NetworkX.hits's power-iteration test now expects the decline where NetworkX lacksmethod.Stacked on #121.