On Oct 13, 2007, at 11:22 AM, Jason Grout wrote: mabshoff wrote: >> On Oct 13, 10:10 am, "William Stein" <[EMAIL PROTECTED]> wrote: [snip] > This is odd. The test passes on my Ubuntu 32-bit P4 system. It looks > like the edges are returned in a different order for you, so the > answer > is correct, just output differently. > > I can't build the alpha right now, but someone that has the alpha > built, > can you see if the following code returns the indicated result? If > so, > we can change the doctest to the following. > > sage: g=DiGraph([[1..4], lambda i,j: i<j]) > sage: h=g.line_graph() > sage: h.vertices() > [(1, 2, None), > (1, 3, None), > (1, 4, None), > (2, 3, None), > (2, 4, None), > (3, 4, None)] > sage: h.am() > [0 0 0 1 1 0] > [0 0 0 0 0 1] > [0 0 0 0 0 0] > [0 0 0 0 0 1] > [0 0 0 0 0 0] > [0 0 0 0 0 0]
Built from scratch on a Mac OS X (10.4.10) Core Duo. The tests aren't complete, but many are failing. For this, I get: sage: g=DiGraph([[1..4], lambda i,j: i<j]) sage: h=g.line_graph() sage: h.vertices() [(1, 2, None), (1, 3, None), (1, 4, None), (2, 3, None), (2, 4, None), (3, 4, None)] sage: h.am() [0 0 0 1 1 0] [0 0 0 0 0 1] [0 0 0 0 0 0] [0 0 0 0 0 1] [0 0 0 0 0 0] [0 0 0 0 0 0] Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds ----------- If it weren't for carbon-14, I wouldn't date at all. ----------- --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---