mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

3.2K
active users

#cyclic

0 posts0 participants0 posts today
QIC Journal<p>👋<a href="https://fediscience.org/tags/call4reading" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>call4reading</span></a></p><p>✍️New <a href="https://fediscience.org/tags/entanglement" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>entanglement</span></a>-assisted <a href="https://fediscience.org/tags/quantum" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>quantum</span></a> MDS <a href="https://fediscience.org/tags/codes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codes</span></a> derived from <a href="https://fediscience.org/tags/cyclic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cyclic</span></a> codes <a href="https://fediscience.org/tags/by" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>by</span></a> Sujuan Huang, Shixin Zhu, and Pan Wang</p><p>🔗 <a href="https://doi.org/10.26421/QIC23.5-6-4" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">doi.org/10.26421/QIC23.5-6-4</span><span class="invisible"></span></a></p>
C.<p><span class="h-card"><a href="https://meow.social/@FluffyDeveloper" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>FluffyDeveloper</span></a></span> </p><p>I suspect there's something else going on here, or your comments data is far different than I'm supposing.</p><p>Your flatten method works just fine for me with a tree of 600 comments. In fact, it works fine with 600,000 comments (recurs. lim. 1000)</p><p>Example test script:<br><a href="https://pastebin.com/6Mdvu2WL" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">pastebin.com/6Mdvu2WL</span><span class="invisible"></span></a></p><p>Without seeing your other code, I don't know what the issue you're running into. At a wild guess, is it possible your graph is not acyclic?</p><p><a href="https://mindly.social/tags/recursion" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>recursion</span></a> <a href="https://mindly.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mindly.social/tags/graph" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>graph</span></a> <a href="https://mindly.social/tags/cyclic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cyclic</span></a> <a href="https://mindly.social/tags/acyclic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>acyclic</span></a></p>
Chuck Darwin<p>Researchers Identify Sugar Molecule in Breast Milk That Boosts <a href="https://c.im/tags/Infant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Infant</span></a> <a href="https://c.im/tags/Brain" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Brain</span></a> <a href="https://c.im/tags/Development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Development</span></a> -- Yale School of Medicine</p><p><a href="https://c.im/tags/Myoinositol" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Myoinositol</span></a> is a small <a href="https://c.im/tags/cyclic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cyclic</span></a> <a href="https://c.im/tags/sugar" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sugar</span></a> <a href="https://c.im/tags/molecule" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>molecule</span></a> in <a href="https://c.im/tags/breast" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>breast</span></a> <a href="https://c.im/tags/milk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>milk</span></a> that also is found in a typical adult diet, including in <a href="https://c.im/tags/fruits" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fruits</span></a> and <a href="https://c.im/tags/grains" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>grains</span></a>. </p><p>The study emphasizes the powerful role that what we eat plays in brain function. It was published in PNAS on July 11.</p><p>"The effects of <a href="https://c.im/tags/micronutrients" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>micronutrients</span></a> on the <a href="https://c.im/tags/brain" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>brain</span></a> are really under-appreciated. As a neuroscientist, our findings were stunning to me." -- Thomas Biederer, PhD</p><p><a href="https://medicine.yale.edu/news-article/researchers-identify-sugar-molecule-in-breast-milk-that-boosts-infant-brain-development/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medicine.yale.edu/news-article</span><span class="invisible">/researchers-identify-sugar-molecule-in-breast-milk-that-boosts-infant-brain-development/</span></a></p>
ChemistryViews<p>α-Alkylation of Saturated Cyclic Ketones: Amine-free, directing-group-free transformation using quantum dots as a photocatalyst </p><p><a href="https://bit.ly/45x5N64" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">bit.ly/45x5N64</span><span class="invisible"></span></a></p><p><a href="https://mstdn.social/tags/chemistry" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>chemistry</span></a> <a href="https://mstdn.social/tags/chemistryviews" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>chemistryviews</span></a> <a href="https://mstdn.social/tags/chemviews" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>chemviews</span></a> <a href="https://mstdn.social/tags/reserch" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reserch</span></a> <a href="https://mstdn.social/tags/chemiverse" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>chemiverse</span></a> <a href="https://mstdn.social/tags/cyclic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cyclic</span></a> <a href="https://mstdn.social/tags/organicsynthesis" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>organicsynthesis</span></a> <a href="https://mstdn.social/tags/scicon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scicon</span></a></p>
Rémi Eismann<p>One day, one decomposition<br />A003277: Cyclic numbers: k such that k and phi(k) are relatively prime; also k such that there is just one group of order k, i.e., A000001(n) = 1</p><p>3D graph <a href="https://mathstodon.xyz/tags/threejs" class="mention hashtag" rel="tag">#<span>threejs</span></a> <a href="https://mathstodon.xyz/tags/webGL" class="mention hashtag" rel="tag">#<span>webGL</span></a> ➡️ <a href="https://decompwlj.com/3Dgraph/Cyclic_numbers.html" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">decompwlj.com/3Dgraph/Cyclic_n</span><span class="invisible">umbers.html</span></a><br />2D graph, first 500 terms ➡️ <a href="https://decompwlj.com/2Dgraph500terms/Cyclic_numbers.html" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">decompwlj.com/2Dgraph500terms/</span><span class="invisible">Cyclic_numbers.html</span></a></p><p><a href="https://mathstodon.xyz/tags/decompwlj" class="mention hashtag" rel="tag">#<span>decompwlj</span></a> <a href="https://mathstodon.xyz/tags/math" class="mention hashtag" rel="tag">#<span>math</span></a> <a href="https://mathstodon.xyz/tags/mathematics" class="mention hashtag" rel="tag">#<span>mathematics</span></a> <a href="https://mathstodon.xyz/tags/sequence" class="mention hashtag" rel="tag">#<span>sequence</span></a> <a href="https://mathstodon.xyz/tags/OEIS" class="mention hashtag" rel="tag">#<span>OEIS</span></a> <a href="https://mathstodon.xyz/tags/javascript" class="mention hashtag" rel="tag">#<span>javascript</span></a> <a href="https://mathstodon.xyz/tags/php" class="mention hashtag" rel="tag">#<span>php</span></a> <a href="https://mathstodon.xyz/tags/3D" class="mention hashtag" rel="tag">#<span>3D</span></a> <a href="https://mathstodon.xyz/tags/numbers" class="mention hashtag" rel="tag">#<span>numbers</span></a> <a href="https://mathstodon.xyz/tags/cyclic" class="mention hashtag" rel="tag">#<span>cyclic</span></a> <a href="https://mathstodon.xyz/tags/phi" class="mention hashtag" rel="tag">#<span>phi</span></a> <a href="https://mathstodon.xyz/tags/relatively" class="mention hashtag" rel="tag">#<span>relatively</span></a> <a href="https://mathstodon.xyz/tags/prime" class="mention hashtag" rel="tag">#<span>prime</span></a> <a href="https://mathstodon.xyz/tags/group" class="mention hashtag" rel="tag">#<span>group</span></a> <a href="https://mathstodon.xyz/tags/graph" class="mention hashtag" rel="tag">#<span>graph</span></a></p>
Breakfastisready नाश्तातैयारहै<p><a href="https://mathstodon.xyz/tags/coding" class="mention hashtag" rel="tag">#<span>coding</span></a> <a href="https://mathstodon.xyz/tags/codes" class="mention hashtag" rel="tag">#<span>codes</span></a> <a href="https://mathstodon.xyz/tags/cyclic" class="mention hashtag" rel="tag">#<span>cyclic</span></a> <a href="https://mathstodon.xyz/tags/combinatorics" class="mention hashtag" rel="tag">#<span>combinatorics</span></a> <a href="https://mathstodon.xyz/tags/mathoverflow" class="mention hashtag" rel="tag">#<span>mathoverflow</span></a> <a href="https://mathstodon.xyz/tags/math" class="mention hashtag" rel="tag">#<span>math</span></a> <a href="https://mathstodon.xyz/tags/hashtag" class="mention hashtag" rel="tag">#<span>hashtag</span></a></p>