Data tree and List:
List and Data tree manimpulation_LS2018
HOMEWORK: Try to generate all the diagonals for all the grid points:
HOMEWORK - Create all the diagonal for the whole grid
(Potential help can be found in here: http://scripting.molab.eu/lectures/diagrid-data-tree-2/)
Check out this tutorial from TU Delft: http://wiki.bk.tudelft.nl/toi-pedia/Grasshopper_Data_Tree_Editing