Hello, I'm running sage-4.0
Prof. Rafael Villarroel told me about some weird things happening in sage. Here is a sample session sage: L = list ( graphs(5, lambda G: G.is_bipartite()) ); len(L) 13 sage: X = list ( graphs(5, lambda G: G.is_connected()) ); len(X) 0 sage: T = list ( graphs(5, lambda G: G.is_tree()) ); len(T) 0 sage: F = list ( graphs(5, lambda G: G.is_forest()) ); len(F) 10 sage: V = list ( graphs(5, property=lambda G: G.is_vertex_transitive ()) ); len(V) 1 In some cases we get no results, and in some others we get partial results. If we try first constructing the list and then filtering, it works. e.g. sage: X=[g for g in list(graphs(5)) if g.is_connected()];len (X) 21 sage: V=[g for g in list(graphs(5)) if g.is_vertex_transitive()];len (V) 3 Is this a bug in the generator? Thanks for your attention. Greetings, Fidel --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---