On Fri, Apr 10, 2009 at 12:09 AM, Alec <[email protected]> wrote: > > > On Apr 8, 11:50 am, William Stein <[email protected]> wrote: > >> Thanks for the bug report. We are tracking this here: >> >> http://trac.sagemath.org/sage_trac/ticket/5713 > > Fantastic! I see that it is fixed already! I just added lambdas to my > graph_plot.py file and the graph plots OK. > > Meanwhile, I've noticed that the degrees are printed not in the order > of vertices in this graph, > > G.degree() > [6, 6, 6, 3, 5] > [i for i in G.degree_iterator()] > [6, 6, 6, 3, 5]
Iterators can come back in any order, so I'm not sure this is supposed to be a bug. I hope Robert Miller or somebody can comment on this. > > while it should be as in > > [G.degree(i) for i in G.vertices()] > [6, 6, 6, 5, 3] > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
