Dear Jonathan,
The implementation of SparseGraph has many problems. One definitely
has to go through backward incompatible changes in the data structure.
The alternative would be to make a copy of the files with a class
SparseGraphNew. But this sounds completely silly.
People who do not want code to break should not rely on (semi-)private
methods or attributes. In that sense, it is safe to make the thing you
suggest. The behavior of no public method of graphs will change, right?
Thanks for working on this!
Best
Vincent
Le 07/01/2020 à 22:42, 'Jonathan Kliem' via sage-devel a écrit :
> Dear all,
>
> currently the sparse graph backend keeps a reversed copy of the graph.
>
> However, the SparseGraph itself does not have access to it and thus the
> reversed structure should be moved there for obvious optimizations. See
> #28904 <
https://trac.sagemath.org/ticket/28904>.