def _propagate_root_output(graph, node, field, connections):
 for (destnode, inport, src) in connections:
  value = getattr(node.inputs, field)
  if isinstance(src, tuple):
   value = evaluate_connect_function(src[1], src[2], value)
  destnode.set_input(inport, value)

def _propagate_root_output ( graph , node , field , connections ) : for ( destnode , inport , src ) in connections : value = getattr ( node . inputs , field ) if isinstance ( src , tuple ) : value = evaluate_connect_function ( src [ 1 ] , src [ 2 ] , value ) destnode . set_input ( inport , value )
propagates the given graph root node output port field connections to the out-edge destination nodes .