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

2022-08-19 Thread John H Palmieri
I see the following in the most recent (beta) release of Sage: sage: g1=Graph([(0,'a')]) sage: g1.vertices() :1: DeprecationWarning: parameter 'sort' will be set to False by default in the future See http://trac.sagemath.org/22349 for details. g1.vertices()

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

2022-08-19 Thread Georgi Guninski
On Wed, Jul 13, 2022 at 5:46 PM John H Palmieri wrote: > > "Fix your old code" could just mean using `vertices(sort=False)`. See also > https://trac.sagemath.org/ticket/22349. > fixing the sort() appears easy: >>> li=['a',0] >>> li.sort(key=hash);li [0, 'a'] -- You received this message

[sage-devel] Useful methods for graphics objects

2022-08-19 Thread Kwankyu Lee
Hi, I wish that this would work: sage: l = line3d([(1,2,3),(2,2,3)]) sage: l.length() 1 Is there already a handy way to get the same result in Sage? You can image other useful methods attached to a graphics object. -- You received this message because you are subscribed to the Google