Changed ddg.return to create the function node for the function that is
returning if it does not already exist.