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

Clean the use of weights in graph.py #32802

Closed
dcoudert opened this issue Oct 30, 2021 · 12 comments
Closed

Clean the use of weights in graph.py #32802

dcoudert opened this issue Oct 30, 2021 · 12 comments

Comments

@dcoudert
Copy link
Contributor

part of #13112 and follow-up of #32723.

Here we clean methods:

  • eccentricity
  • radius
  • diameter

Component: graph theory

Author: David Coudert

Branch/Commit: 725e2ee

Reviewer: Vincent Delecroix

Issue created by migration from https://trac.sagemath.org/ticket/32802

@dcoudert dcoudert added this to the sage-9.5 milestone Oct 30, 2021
@dcoudert
Copy link
Contributor Author

Branch: public/graphs/32802_graph

@dcoudert
Copy link
Contributor Author

Commit: b94f1eb

@dcoudert
Copy link
Contributor Author

New commits:

b94f1ebtrac #32802: weights in eccentricity, radius, diameter

@dcoudert
Copy link
Contributor Author

dcoudert commented Dec 4, 2021

comment:2

The error reported by the patchbot in src/sage/schemes/toric/sheaf/klyachko.py has already been reported in #32773.

@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 27, 2021
@videlec
Copy link
Contributor

videlec commented Dec 29, 2021

comment:4

Could you replace w_func by weight_function in

         if algorithm == 'DHV':
+            by_weight, w_func = self._get_weight_function(by_weight=by_weight,
+                                                          weight_function=weight_function,
+                                                          check_weight=check_weight)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 29, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

761c4ectrac #32802: merged with 9.5.beta9
725e2eetrac #32802: review commit

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 29, 2021

Changed commit from b94f1eb to 725e2ee

@dcoudert
Copy link
Contributor Author

comment:6

It's nicer this way

@videlec
Copy link
Contributor

videlec commented Dec 30, 2021

comment:7

Thanks.

BTW, why is it called _get_weight_function and not simply _weight_function?

@videlec
Copy link
Contributor

videlec commented Dec 30, 2021

Reviewer: Vincent Delecroix

@dcoudert
Copy link
Contributor Author

comment:9

BTW, why is it called _get_weight_function and not simply _weight_function?

I had to find a name... it can be changed for something shorter, but only after we are done with the cleaning of the usage of weights in the graph module (#13112).

Thanks for the review.

@vbraun
Copy link
Member

vbraun commented Jan 31, 2022

Changed branch from public/graphs/32802_graph to 725e2ee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants