Hi folks, The situation with weighted() is even more bizarre:
sage: version() 'Sage Version 4.6.1.alpha3, Release Date: 2010-12-05' sage: G = Graph({1:{2:3}}) sage: G.weighted() False sage: G.weighted('a') sage: G.weighted() 'a' sage: G.weighted(True) sage: G.weighted() True Python recognizes a nonempty string as equivalent to True, but the above behaviour is confusing. I would expect the valid input to be a boolean from [True, False]. A patch is up at ticket #10490 http://trac.sagemath.org/sage_trac/ticket/10490 to fix this bug and to allow for setting a weighted graph as unweighted. -- Regards Minh Van Nguyen -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org