parameters: (self, parent, source, sink)
docstring: Make a new connection given the parent and 2 ports.
  
          Args:
              flow_graph: the parent of this element
              source: a port (any direction)
              sink: a port (any direction)
          @throws Error cannot make connection
  
          Returns:
              a new connection
docstring_summary: Make a new connection given the parent and 2 ports.
docstring_tokens: Make a new connection given the parent and 2 ports .
function: def __init__(self, parent, source, sink):
          """
          Make a new connection given the parent and 2 ports.
  
          Args:
              flow_graph: the parent of this element
              source: a port (any direction)
              sink: a port (any direction)
          @throws Error cannot make connection
  
          Returns:
              a new connection
          """
          Element.__init__(self, parent)
  
          if not source.is_source:
              source, sink = sink, source
          if not source.is_source:
              raise ValueError('Connection could not isolate source')
          if not sink.is_sink:
              raise ValueError('Connection could not isolate sink')
  
          self.source_port = source
          self.sink_port = sink
function_tokens: def __init__ ( self , parent , source , sink ) : Element . __init__ ( self , parent ) if not source . is_source : source , sink = sink , source if not source . is_source : raise ValueError ( 'Connection could not isolate source' ) if not sink . is_sink : raise ValueError ( 'Connection could not isolate sink' ) self . source_port = source self . sink_port = sink