ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 25 Sep 2022 14:04:20 +0200Unable to print a poset from Posets(15)https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/I am interested in finding posets with some specific property. To do that, I am running the following loop:
P = Posets(15)
For p in P:
if "xyz" condition holds:
print(p)
break
else:
continue
I have observed that my code is stuck on P[28] for hours. Note that it went for P[0] to P[27] within few seconds. It is working for smaller values of $n$, i.e., for $n=5,6$. I have also tried to plot P[28] seperately but it is just processing.
Can anyone please help me regarding this?Sun, 25 Sep 2022 11:51:53 +0200https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/Comment by FrédéricC for <p>I am interested in finding posets with some specific property. To do that, I am running the following loop:</p>
<pre><code>P = Posets(15)
For p in P:
if "xyz" condition holds:
print(p)
break
else:
continue
</code></pre>
<p>I have observed that my code is stuck on P[28] for hours. Note that it went for P[0] to P[27] within few seconds. It is working for smaller values of $n$, i.e., for $n=5,6$. I have also tried to plot P[28] seperately but it is just processing.</p>
<p>Can anyone please help me regarding this?</p>
https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64163#post-id-64163see also https://ask.sagemath.org/question/41912/posets10-freezing/Sun, 25 Sep 2022 14:04:20 +0200https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64163#post-id-64163Comment by FrédéricC for <p>I am interested in finding posets with some specific property. To do that, I am running the following loop:</p>
<pre><code>P = Posets(15)
For p in P:
if "xyz" condition holds:
print(p)
break
else:
continue
</code></pre>
<p>I have observed that my code is stuck on P[28] for hours. Note that it went for P[0] to P[27] within few seconds. It is working for smaller values of $n$, i.e., for $n=5,6$. I have also tried to plot P[28] seperately but it is just processing.</p>
<p>Can anyone please help me regarding this?</p>
https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64162#post-id-64162Iterating over posets up to isomorphism is difficult. This hangs because the next poset is hard to find. This could maybe be enhanced by making a better interface to a version of nauty which can perform this iteration on posets.Sun, 25 Sep 2022 14:03:34 +0200https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64162#post-id-64162Comment by Max Alekseyev for <p>I am interested in finding posets with some specific property. To do that, I am running the following loop:</p>
<pre><code>P = Posets(15)
For p in P:
if "xyz" condition holds:
print(p)
break
else:
continue
</code></pre>
<p>I have observed that my code is stuck on P[28] for hours. Note that it went for P[0] to P[27] within few seconds. It is working for smaller values of $n$, i.e., for $n=5,6$. I have also tried to plot P[28] seperately but it is just processing.</p>
<p>Can anyone please help me regarding this?</p>
https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64160#post-id-64160Does it work without "xyz" condition? Can you provide a minimal working code example that illustrates the issue?Sun, 25 Sep 2022 13:00:54 +0200https://ask.sagemath.org/question/64158/unable-to-print-a-poset-from-posets15/?comment=64160#post-id-64160