Re: [sage-devel] Graph([(0,'a')]).vertices() raises exception

2022-07-13 Thread John H Palmieri
"Fix your old code" could just mean using `vertices(sort=False)`. See also https://trac.sagemath.org/ticket/22349. On Wednesday, July 13, 2022 at 12:59:45 AM UTC-7 dim...@gmail.com wrote: > > > On Wed, 13 Jul 2022, 08:17 Georgi Guninski, wrote: > >> hi sage developers :) >> long time no see.

Re: [sage-devel] Graph([(0,'a')]).vertices() raises exception

2022-07-13 Thread Dima Pasechnik
On Wed, 13 Jul 2022, 08:17 Georgi Guninski, wrote: > hi sage developers :) > long time no see. > > i think the migration python2 to python3 regressed a lot > of Graph() stuff related to ordering the vertices. > yes, indeed. I don't think much can be done here; i.e., fix your old code. > > > >

Re: [sage-devel] isogeny_class for EC_NumberField sometimes raises errors

2022-07-13 Thread John Cremona
On Tue, 12 Jul 2022 at 19:41, Barinder Banwait wrote: > > Thanks John -- ticket raised here: > https://trac.sagemath.org/ticket/34174#ticket As a workaround, you can do two things (which will not be necessary after I have finished with that ticket): (1) replace E by E.integral_model(), or

[sage-devel] Graph([(0,'a')]).vertices() raises exception

2022-07-13 Thread Georgi Guninski
hi sage developers :) long time no see. i think the migration python2 to python3 regressed a lot of Graph() stuff related to ordering the vertices. Here is test case from sagecell: === g1=Graph([(0,'a')]) g2=g1.copy() g2.relabel() g2.vertices() g1.vertices() TypeError: '<' not supported