Hi folks, I received the following bug report via IRC:
07:54 < quimey> I am using the poset class 07:55 < quimey> there is a method, for a poset P, in order to see the poset you can execute P.show 07:55 < quimey> That shows a graph describing the poset 07:56 < quimey> in some cases three vertices of the graph are aligned 07:56 < quimey> and the edges connecting it are overlapped 07:56 < quimey> I have an example if you want 07:57 < mvngu> Sure. Please paste the example code to http://dpaste.com 08:02 < quimey> http://dpaste.com/149055/ 08:03 < quimey> the edge connecting 4 and 5 is overlapped with the edge connecting 2 and 5 The relevant code sample is [mv...@sage mvngu]$ sage ---------------------------------------------------------------------- | Sage Version 4.3.1, Release Date: 2010-01-20 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: def CoverRelationSubp(P,e): ....: lista = P.cover_relations() ....: print lista,e,e in lista ....: lista.remove(e) ....: return Poset((P.list(),lista)) ....: sage: P=Poset({0:[2,3], 1:[3,4,5], 2:[5], 3:[5], 4:[5]}) sage: P.show() sage: print P.cover_relations() [[1, 4], [1, 3], [4, 5], [0, 2], [0, 3], [2, 5], [3, 5]] sage: e= P.cover_relations()[0] sage: D=CoverRelationSubp(P,e) [[1, 4], [1, 3], [4, 5], [0, 2], [0, 3], [2, 5], [3, 5]] [1, 4] True sage: print D.cover_relations() [[4, 5], [0, 2], [0, 3], [2, 5], [1, 3], [3, 5]] sage: show(D.hasse_diagram()) sage: show(D) -- 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