-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Bad error message for weighted adjacency matrix #33562
Comments
comment:1
It's not the only undesirable behavior of methods using
This said, I'm not sure which is the best solution here. Should we first check edge weights (with/without using a base ring) ? force to pass a weight function ? Something else ? |
Commit: |
Author: David Coudert |
comment:3
I added a check of edge weights. Let me know if this is what you expect. New commits:
|
Branch: public/graphs/33562 |
comment:5
Green bot, please review. |
comment:6
Why can't IMHO whatever values we have on edges may be weights. |
comment:7
|
comment:8
Replying to David Coudert:
sure, but we're talking about the adjacency matrix with the edge labels put at their respective places. These labels may be e.g. polynomials, or complex numbers - objects on which there is no natural order to speak about. Why would one want to forbid such matrices? E.g. in linear algebra one naturally may represent sparse matrices as graphs. |
comment:10
Here is an alternative solution that catches |
Reviewer: Dima Pasechnik |
comment:12
OK, rebased over the latest beta. Looks good. By the way, edge weights are allowed to be ring elements, e.g. |
comment:13
Merge failure on top of: 52abf762eeb Trac #24462: Add tests that discriminant() of number fields is Integer 48afcb931df Trac #34713: Update IPython to 8.6 3c3b748f895 Trac #34712: partial pep8 cleanup for number_field.py bdcd8e2f903 Trac #34707: Bug in Clifford algebra multiplication ab40677de1c Trac #34702: fix deprecated use of PyEval_Call* b8151dc1099 Trac #34681: Error with multiplication of points on elliptic curves over Integers(n) 0fcca83be81 Trac #34651: Add 7c37d8de415 Trac #34611: fast implementation of exp 0a63c62c2da Trac #34397: pycodestyle cleanup in src/sage/graphs/generic_graph.py (part 9) 1f9b781eee1 Trac #34081: Upgrade scipy to 1.9.x, add meson toolchain 58c9281 Trac #32267: make hadamard_matrix() use all the Hadamard matrices Sage knows edfa1f9 Trac #30423: F-Matrix Factory 7aa226c Trac #34699: some details about INPUT and INPUT in the doc c4079b7 Trac #34697: minor fixes in doc in pyx files 8130728 Trac #34691: companion matrix of constant polynomial has the wrong parent 6b70584 Trac #34638: refresh the file categories/rings.py f634f6b Trac #34368: implement the F,H,M triangles 859c351 Trac #34689: make Compositions() an additive monoid b508288 Trac #34665: openssl spkg-configure.m4: Also require openssl if curl needs to be built 487f2f9 Trac #34662: sage.combinat.permutation.from_cycles produces wrong result when 'cycles' is a generator ab0944d Trac #34636: make sparsity a decision of the user 24d0a8a Trac #34381: Add infinite q-Pochhammer symbol ef1d3d2 Trac #34260: Implement northwest diagrams bff11ac Trac #33176: Fix a few cython "referenced before assignment" warnings 89af346 Trac #32267: make hadamard_matrix() use all the Hadamard matrices Sage knows c3028e7 Updated SageMath version to 9.8.beta3 merge was not clean: conflicts in src/sage/graphs/generic_graph.py |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
I fixed the merge conflict => back to positive review. |
Changed branch from public/graphs/33562 to |
should give something useful, but instead is an inexplicable error message
This happens whether or not this graph is said to be weighted. There should be an error catch for a useful message.
Component: graph theory
Author: David Coudert
Branch/Commit:
fe8b4d5
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/33562
The text was updated successfully, but these errors were encountered: