Script enters endless loop when selecting multiple elements

It’s most likely an issue with list structure and not looping through multiple elements. Can you show the outputs for running your graph on one element vs running it on two?