parameters: (sgv0, sgv1, disconnect_first=False)
return_statement: return sgv0, sgv1
docstring: Connect the outputs of sgv0 to the inputs of sgv1.
  
    Args:
      sgv0: the first subgraph to have its outputs swapped. This argument is
        converted to a subgraph using the same rules as the function
        subgraph.make_view.
      sgv1: the second subgraph to have its outputs swapped. This argument is
        converted to a subgraph using the same rules as the function
        subgraph.make_view.
      disconnect_first: if True the current outputs of sgv0 are disconnected.
    Returns:
      Two new subgraph views (now connected). sgv0 and svg1 are also modified
        in place.
    Raises:
      StandardError: if sgv0 or sgv1 cannot be converted to a SubGraphView using
        the same rules than the function subgraph.make_view.
docstring_summary: Connect the outputs of sgv0 to the inputs of sgv1.
docstring_tokens: Connect the outputs of sgv0 to the inputs of sgv1 .
function: def connect(sgv0, sgv1, disconnect_first=False):
    """Connect the outputs of sgv0 to the inputs of sgv1.
  
    Args:
      sgv0: the first subgraph to have its outputs swapped. This argument is
        converted to a subgraph using the same rules as the function
        subgraph.make_view.
      sgv1: the second subgraph to have its outputs swapped. This argument is
        converted to a subgraph using the same rules as the function
        subgraph.make_view.
      disconnect_first: if True the current outputs of sgv0 are disconnected.
    Returns:
      Two new subgraph views (now connected). sgv0 and svg1 are also modified
        in place.
    Raises:
      StandardError: if sgv0 or sgv1 cannot be converted to a SubGraphView using
        the same rules than the function subgraph.make_view.
    """
    sgv0 = subgraph.make_view(sgv0)
    sgv1 = subgraph.make_view(sgv1)
    util.check_graphs(sgv0, sgv1)
    if disconnect_first:
      detach_outputs(sgv0)
    sgv0_outputs = subgraph.SubGraphView(passthrough_ts=sgv0.outputs)
    reroute.reroute_a2b_inputs(sgv0_outputs, sgv1)
    return sgv0, sgv1
function_tokens: def connect ( sgv0 , sgv1 , disconnect_first = False ) : sgv0 = subgraph . make_view ( sgv0 ) sgv1 = subgraph . make_view ( sgv1 ) util . check_graphs ( sgv0 , sgv1 ) if disconnect_first : detach_outputs ( sgv0 ) sgv0_outputs = subgraph . SubGraphView ( passthrough_ts = sgv0 . outputs ) reroute . reroute_a2b_inputs ( sgv0_outputs , sgv1 ) return sgv0 , sgv1