Print return nodes for graphs with multiple functions in them correctly