I'm wondering if there's an existing word to describe a process that I'm currently using. I want to call it "flattening a tree" but I feel like there must be a better word or phrase.
input:
|--D
--B
| |--C
|
A-E
|
| |--G
--F
|--H
output:
[ [A, B, D]
[A, B, C]
[A, E]
[A, F, G]
[A, F, H] ]
Is there an established name for this process?