I suspect there's something else going on here, or your comments data is far different than I'm supposing.
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)
Example test script:
https://pastebin.com/6Mdvu2WL
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?
#Recursion #python #graph #cyclic #acyclic
α-Alkylation of Saturated Cyclic Ketones: Amine-free, directing-group-free transformation using quantum dots as a photocatalyst
#chemistry #chemistryviews #chemviews #reserch #chemiverse #cyclic #organicsynthesis #scicon
#SciCon #organicsynthesis #cyclic #chemiverse #reserch #chemviews #chemistryviews #chemistry
"We're on a road to nowhere
Come on inside
Takin' that ride to nowhere
We'll take that ride"
─ Talking Heads
#animation #animator #animated #gif #AnimatedGif #GifAnimation #loop #looping #cycle #cyclic #road #BlackAndWhite #nowhere #vector #VectorArt #design #GraphicDesign #ride #driving #night
#night #driving #ride #graphicdesign #design #vectorart #vector #nowhere #BlackAndWhite #road #cyclic #cycle #looping #loop #gifanimation #animatedgif #gif #animated #animator #animation
"We're on a road to nowhere
Come on inside
Takin' that ride to nowhere
We'll take that ride"
─ Talking Heads
#animation #animator #animated #gif #AnimatedGif #GifAnimation #loop #looping #cycle #cyclic #road #BlackAndWhite #nowhere #vector #VectorArt #design #GraphicDesign #ride #driving #night
#night #driving #ride #graphicdesign #design #vectorart #vector #nowhere #BlackAndWhite #road #cyclic #cycle #looping #loop #gifanimation #animatedgif #gif #animated #animator #animation
This is one of the most interesting ideas I've seen in a long time. Dungeon loops are nothing new, but this is a very well defined technique to create them.
I might try applying this to an adventure quest instead of a dungeon.
#cyclic #dungeon #ttrpg #gamedev
This is one of the most interesting ideas I've seen in a long time. Dungeon loops are nothing new, but this is a very well defined technique to create them.
I might try applying this to an adventure quest instead of a dungeon.
#cyclic #dungeon #ttrpg #gamedev
This is one of the most interesting ideas I've seen in a long time. Dungeon loops are nothing new, but this is a very well defined technique to create them.
I might try applying this to an adventure quest instead of a dungeon.
#cyclic #dungeon #ttrpg #gamedev
One day, one decomposition
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
3D graph #threejs #webGL ➡️ https://decompwlj.com/3Dgraph/Cyclic_numbers.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/Cyclic_numbers.html
#decompwlj #math #mathematics #sequence #OEIS #javascript #php #3D #numbers #cyclic #phi #relatively #prime #group #graph
#graph #group #prime #relatively #phi #cyclic #numbers #3d #php #javascript #oeis #sequence #mathematics #math #decompwlj #webgl #threejs
Well, this turned out more difficult than I had though, a few looped rig chains, but hey, it works :)
#rigging #cinema4d #motiongraphics #helicopter #cyclic #wip
#rigging #cinema4d #motiongraphics #helicopter #cyclic #wip
[Tom Stanton] Builds an Osprey
https://hackaday.com/2022/10/08/tom-stanton-builds-an-osprey/
#dronehacks #collective #helicopter #swashplate #tiltrotor #cyclic #Osprey #pitch #V-22 #vtol #rc
#dronehacks #Collective #helicopter #Swashplate #tiltrotor #cyclic #Osprey #pitch #v #vtol #rc
[Tom Stanton] Builds an Osprey - The V-22 Osprey is an aircraft like no other. The tiltrotor multirole military air... - https://hackaday.com/2022/10/08/tom-stanton-builds-an-osprey/ #dronehacks #collective #helicopter #swashplate #tiltrotor #cyclic #osprey #pitch #v-22 #vtol #rc
#rc #vtol #v #pitch #osprey #cyclic #tiltrotor #swashplate #helicopter #collective #dronehacks