parameters: (self, graph)
return_statement: return control_outputs
docstring: Returns the map of control_outputs for a given graph.
  
      Args:
        graph: The graph to parse.
      Returns:
        A map of the control outputs.
docstring_summary: Returns the map of control_outputs for a given graph.
docstring_tokens: Returns the map of control_outputs for a given graph .
function: def calc_control_outputs(self, graph):
      """Returns the map of control_outputs for a given graph.
  
      Args:
        graph: The graph to parse.
      Returns:
        A map of the control outputs.
      """
      control_outputs = {}
      for op in graph.get_operations():
        for control_input in op.control_inputs:
          if control_input not in control_outputs:
            control_outputs[control_input] = set()
          control_outputs[control_input].add(op)
      return control_outputs
function_tokens: def calc_control_outputs ( self , graph ) : control_outputs = { } for op in graph . get_operations ( ) : for control_input in op . control_inputs : if control_input not in control_outputs : control_outputs [ control_input ] = set ( ) control_outputs [ control_input ] . add ( op ) return control_outputs