I am looking for a way to generate a “triangular” graph of the following shape for arbitrary given depth, with vertices at positions similar to the numbers in Pascal’s triangle, and vertical edges only:
Michael, thank you for the elegant solution that you had provided to my question.
It took me some time to digest, but I have learned a lot about postfix notation and pure function use.
Thank you, Eric. Your post contained commands (TakeList, Rule, BlockMap) that were new for me.
I used your suggestion to construct a SparseArray whose AdjacencyMatrix is the requested graph.