[sage-devel] Re: bug in generating regular graphs?

2011-10-15 Thread Dima Pasechnik
It turns out that generating regular graphs is apparently best done via deg_seq parameter. By the way, it is ugly, user-unfriendly, and hard to parse. I'll make a ticket requesting it being changed to degree_sequence. Or at least introducing an alias. -- To post to this group, send an email to

[sage-devel] Re: bug in generating regular graphs?

2011-10-13 Thread Jason Grout
On 10/13/11 11:10 PM, leif wrote: On 13 Okt., 12:57, Jason Grout wrote: On 10/13/11 3:05 AM, P Purkayastha wrote: It seems to be a more general bug in the function *graphs()*. Even this code fails to give any output: def isc(g): return g.is_clique() Genn = graphs(3, isc) [_ for _ in Genn] R

[sage-devel] Re: bug in generating regular graphs?

2011-10-13 Thread leif
On 13 Okt., 12:57, Jason Grout wrote: > On 10/13/11 3:05 AM, P Purkayastha wrote: > > > It seems to be a more general bug in the function *graphs()*. Even this > > code fails to give any output: > > def isc(g): return g.is_clique() > > Genn = graphs(3, isc) > > [_ for _ in Genn] > > Read the docum

[sage-devel] Re: bug in generating regular graphs?

2011-10-13 Thread Jason Grout
On 10/13/11 3:05 AM, P Purkayastha wrote: It seems to be a more general bug in the function *graphs()*. Even this code fails to give any output: def isc(g): return g.is_clique() Genn = graphs(3, isc) [_ for _ in Genn] Read the documentation a little closer (or maybe the documentation needs to

Re: [sage-devel] Re: bug in generating regular graphs?

2011-10-13 Thread D. S. McNeil
Property doesn't work quite like you think it might: the property needs to possess certain inheritance features. (Frankly, I might have named it "heritable_property" or something instead.) http://trac.sagemath.org/sage_trac/ticket/6210 and http://groups.google.com/group/sage-devel/browse_thread

[sage-devel] Re: bug in generating regular graphs?

2011-10-13 Thread P Purkayastha
It seems to be a more general bug in the function *graphs()*. Even this code fails to give any output: def isc(g): return g.is_clique() Genn = graphs(3, isc) [_ for _ in Genn] -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to