parameters: (self, id_link)
docstring: Returns the network edge ids used by id_link in case of a transit link.
          Otherwirse returns an empty list.
docstring_summary: Returns the network edge ids used by id_link in case of a transit link.
          Otherwirse returns an empty list.
docstring_tokens: Returns the network edge ids used by id_link in case of a transit link . Otherwirse returns an empty list .
function: def get_ids_edge(self, id_link):
          """
          Returns the network edge ids used by id_link in case of a transit link.
          Otherwirse returns an empty list.
          """
          if self.types.choices['transit'] == self.types[id_link]:
              id_line = self.ids_line[id_link]
              ptlines = self.parent
              lanes = ptlines.get_net().lanes
              ptstops = ptlines.get_ptstops()
              id_edge_from = lanes.ids_edge[ptstops.ids_lane[self.ids_fromstop[id_link]]]
              id_edge_to = lanes.ids_edge[ptstops.ids_lane[self.ids_tostop[id_link]]]
              ids_edge = ptlines.ids_edges[self.ids_line[id_link]]
              if id_edge_from in ids_edge:
                  ind_from = ids_edge.index(id_edge_from)
              else:
                  return []
              if id_edge_to in ids_edge:
                  ind_to = ids_edge.index(id_edge_to)
                  return ids_edge[ind_from:ind_to]  # this excludes last edge
              else:
                  return []
          else:
              return []
function_tokens: def get_ids_edge ( self , id_link ) : if self . types . choices [ 'transit' ] == self . types [ id_link ] : id_line = self . ids_line [ id_link ] ptlines = self . parent lanes = ptlines . get_net ( ) . lanes ptstops = ptlines . get_ptstops ( ) id_edge_from = lanes . ids_edge [ ptstops . ids_lane [ self . ids_fromstop [ id_link ] ] ] id_edge_to = lanes . ids_edge [ ptstops . ids_lane [ self . ids_tostop [ id_link ] ] ] ids_edge = ptlines . ids_edges [ self . ids_line [ id_link ] ] if id_edge_from in ids_edge : ind_from = ids_edge . index ( id_edge_from ) else : return [ ] if id_edge_to in ids_edge : ind_to = ids_edge . index ( id_edge_to ) return ids_edge [ ind_from : ind_to ] # this excludes last edge else : return [ ] else : return [ ]