(Came as a side effect from #17147 and the pentagon poset.)

I tried

P = Posets.ChainPoset(2)
H = P._hasse_diagram
H.plot(layout='acyclic', save_pos=True)
print(H._pos)
H._pos = {0: [0.407127849277737, 0], 1: [0.6019889770070213, 1]}
H.plot(layout='acyclic', save_pos=True)
print(H._pos)

and got

{0: [0.50239985054502, 0], 1: [0.5037689172710763, 1]}
{0: [0.5001236499103481, 0], 1: [0.5075885512735917, 1]}

So should the save_pos do something when layout is not the default? It seems that at least it is not strictly deterministic.

--
Jori Mäntysalo

Reply via email to