[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Nathann Cohen
I'm interested by what Robert Miller could have to say about the efficiency of all this Such a change could really slow things down, and I know nothing about such matters ! Nathann On Nov 16, 6:58 pm, Nick Alexander wrote: > > There have been lots of times that I had to deal with the issue

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Nick Alexander
> There have been lots of times that I had to deal with the issue of the > Graph edge (1,2) being the same as the edge (2,1); it's one of those > thorns that keeps being a bit annoying, so I'm happy to have a small > change that would take care of it. Maybe, to be consistent, Digraph > edges shou

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Jason Grout
Nathann Cohen wrote: > And what would you think about moving the current syntax for edges > (u,v,label) to (frozenset_of_two_elements,label) ? You mean functions returning edges would return tuples that looked like: (frozen_or_sage_set_of_two_elements, label) ? I think we should look carefully

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Florent Hivert
Hi, > I always have to include in my graphs functions some part of code to deal > with the fact that for undirected graphs edges can be returned as (u,v) or > as (v,u), which my code does not like Isn't there a Sage a type of > variable which is both immutable and not ordered ? > > I'd

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Nathann Cohen
And what would you think about moving the current syntax for edges (u,v,label) to (frozenset_of_two_elements,label) ? Nathann On Nov 16, 3:26 pm, Jason Grout wrote: > Nathann Cohen wrote: > > Hello !!! > > > I always have to include in my graphs functions some part of code to > > deal with the

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Jason Grout
Nathann Cohen wrote: > Hello !!! > > I always have to include in my graphs functions some part of code to > deal with the fact that for undirected graphs edges can be returned as > (u,v) or as (v,u), which my code does not like Isn't there a Sage a > type of variable which is both immutabl