parameters: (port_map: dict, external_port_id: int, internal_layer_id: int)
return_statement: return False
docstring: Check if inter-graph edge (i.e. an edge between the main graph and body graph) exists
          :param port_map: a port map where to search for inter-graph edge
          :param external_port_id: port index from/to which edge goes
          :param internal_layer_id: layer id from/to which edge goes
          :return: True or False
docstring_summary: Check if inter-graph edge (i.e. an edge between the main graph and body graph) exists
          :param port_map: a port map where to search for inter-graph edge
          :param external_port_id: port index from/to which edge goes
          :param internal_layer_id: layer id from/to which edge goes
          :return: True or False
docstring_tokens: Check if inter - graph edge ( i . e . an edge between the main graph and body graph ) exists : param port_map : a port map where to search for inter - graph edge : param external_port_id : port index from / to which edge goes : param internal_layer_id : layer id from / to which edge goes : return : True or False
function: def inter_edge_exists(port_map: dict, external_port_id: int, internal_layer_id: int):
          """
          Check if inter-graph edge (i.e. an edge between the main graph and body graph) exists
          :param port_map: a port map where to search for inter-graph edge
          :param external_port_id: port index from/to which edge goes
          :param internal_layer_id: layer id from/to which edge goes
          :return: True or False
          """
          for i_port in port_map:
              if i_port['external_port_id'] == external_port_id and \
                      i_port['internal_layer_id'] == internal_layer_id:
                  return True
          return False
function_tokens: def inter_edge_exists ( port_map : dict , external_port_id : int , internal_layer_id : int ) : for i_port in port_map : if i_port [ 'external_port_id' ] == external_port_id and i_port [ 'internal_layer_id' ] == internal_layer_id : return True return False