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
deprecate parameter copy in networkx_graph #27491
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
Author: Rajat Mittal |
Reviewer: dcoudert |
comment:4
This is a very good catch. However, what you propose to do is not what should be done. In #27166, we removed deprecated networkx backends, but we forgot to update other parts.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:8
I am not able to locate _backend._nxg in any backend file in the networkx_graph method
can you point the location or does it always throw an error , if so we can remove it. |
comment:9
We don't have this backend anymore. This is a remaining of the very first releases of Sagemath that we have not fully removed yet (I forgot to do it in #27166). You can also remove this from
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed reviewer from dcoudert to David Coudert |
comment:12
I was a little to fast. To be clean, we should add a deprecation warning for parameter Could you:
- def networkx_graph(self):
+ def networkx_graph(self, copy=True):
+ if copy is not True:
+ deprecation(27491, "parameter copy is removed") Then, in one year, we will completely remove this parameter. Another small modification: - N.add_nodes_from(self.vertices())
+ N.add_nodes_from(self) Method I changed the description of this ticket to be consistent with what it does. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
deprecated the copy parameter. |
comment:15
LGTM |
Changed branch from u/gh-rajat1433/27491_networkx_graph to |
Done in this ticket:
copy
of methodnetworkx_graph
. This parameter was useful for the_nxg
backend that we don't have anymore.._backend._nxg
NetworkXGraphDeprecated
. It should have been removed in remove deprecated classes NetworkXGraphDeprecated and NetworkXDiGraphDeprecated #27166, but has been forgotten.CC: @dcoudert
Component: graph theory
Author: Rajat Mittal
Branch/Commit:
cefb5fb
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/27491
The text was updated successfully, but these errors were encountered: