Jason Grout wrote: > 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. >
On Fedora 7: [EMAIL PROTECTED] sage-2.8.7-alpha0]$ ./sage -t devel/sage-main/sage/graphs/graph.py sage -t devel/sage-main/sage/graphs/graph.py [25.8 s] ---------------------------------------------------------------------- All tests passed! Total time for all tests: 25.8 seconds > 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] > 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: 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] Jaap --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---