On Sunday, December 27, 2015, Jori Mäntysalo <jori.mantys...@uta.fi> wrote:
> On Sun, 27 Dec 2015, Nathann Cohen wrote: > > I expect to have two direct lines, but instead longer line bends at element >>> 2. Is there some reason for this? >>> >> >> You incorrectly believe that the poset code computes the layout >> component by component. It does not. I don't think I ever read it, but >> I believe that it partitions the vertex set according to their rank in >> the poset, and builds layers of ranks. Which is why the unique element >> of rank 0 is aligned between the two elements of rank 1. >> > > OK. I know that it is not exactly poset code, as the same result comes from > > P = Poset({1:[2], 2:[3], 4:[5]}) > P.hasse_diagram().plot(layout='acyclic') > > Your explanation is very good. So if somebody (not me!) wants to touch > this code, then it should split the poset to connected components, draw > them, and then adjoin the pictures. > > You should put this in a trac ticket. > -- > Jori Mäntysalo > -- Sent from my massive iPhone 6 plus. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.