Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-04 Thread Vincent Delecroix
To my mind, this is not the problem. The first command does generate a warning (fine) sage: E = Graph([('A','B'),(1,2)]).edges() :1: DeprecationWarning: parameter 'sort' will be set to False by default in the future See https://github.com/sagemath/sage/issues/27408 for details. But the EdgesView.

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-04 Thread David Coudert
There is an active deprecation warning in method edges(). Parameter sort will be set to False in the future. I'm surprised you don't see it. sage: Graph([('A','B'),(1,2)]).edges() :1: DeprecationWarning: parameter 'sort' will be set to False by default in the future See https://github.com/sagema

Re: [sage-devel] Re: f.g. subrings of polynomial rings and their Hilbert-Poincare series

2023-07-04 Thread Trevor Karn
If I understand correctly, Macaulay2 does this in the SubalgebraBases package: https://arxiv.org/abs/2302.12473 might provide inspiration? On Tuesday, July 4, 2023 at 6:39:53 AM UTC-5 Dima Pasechnik wrote: > > > On Tue, 4 Jul 2023, 12:26 Kwankyu Lee, wrote: > >> Also, as far as I understand, Sa

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-04 Thread Vincent Delecroix
https://github.com/sagemath/sage/issues/35897 On Tue, 4 Jul 2023 at 16:25, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > This is a bug in the __repr__ method of EdgesView. Thanks for your report. > > On Tue, 4 Jul 2023 at 10:52, Georgi Guninski wrote: > > > > Graph([('A','B'),(1,2)]).e

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-04 Thread Vincent Delecroix
This is a bug in the __repr__ method of EdgesView. Thanks for your report. On Tue, 4 Jul 2023 at 10:52, Georgi Guninski wrote: > > Graph([('A','B'),(1,2)]).edges() > ) failed: > TypeError: unsupported operand parent(s) for <: 'Integer Ring' and > ''> > > I think this is related to sorting the edg

Re: [sage-devel] Re: f.g. subrings of polynomial rings and their Hilbert-Poincare series

2023-07-04 Thread Dima Pasechnik
On Tue, 4 Jul 2023, 12:26 Kwankyu Lee, wrote: > Also, as far as I understand, Sage can compute the minimal free resolution > of > the module of syzygies of S, and from the resolution the presentation can > be > assembled. > > > Yes. It's here: > https://doc.sagemath.org/html/en/reference/resoluti

[sage-devel] Re: f.g. subrings of polynomial rings and their Hilbert-Poincare series

2023-07-04 Thread Kwankyu Lee
Also, as far as I understand, Sage can compute the minimal free resolution of the module of syzygies of S, and from the resolution the presentation can be assembled. Yes. It's here: https://doc.sagemath.org/html/en/reference/resolutions/index.html So it seems that the only missing bit is

[sage-devel] f.g. subrings of polynomial rings and their Hilbert-Poincare series

2023-07-04 Thread Dima Pasechnik
We're looking for the ways to deal in Sage with finitely generated subrings S= of the ring of polynomials R[x_1,...,x_n] (R a field) of multivariate polynomial rings and their Hilbert-Poincare series. Once you have a presentation for S, i.e. S isomorphic to R[y_1,...,y_k]/I, with I an ideal in app

[sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-04 Thread Georgi Guninski
Graph([('A','B'),(1,2)]).edges() ) failed: TypeError: unsupported operand parent(s) for <: 'Integer Ring' and ''> I think this is related to sorting the edges. The following works: sage: Graph([("A",1),("B",2)]).edges() [(1, 'A', None), (2, 'B', None)] -- You received this message because you a