dataflow graph constructor of for loop