parameters: (self, id_mode, id_edge, flow)
return_statement: return self.flowtables[id_tf_modes]
docstring: Sets a demand flows between from-Edge and toEdge pairs for mode where flows is a dictionary
          with (fromEdgeID,toEdgeID) pair as key and number of trips as values.
docstring_summary: Sets a demand flows between from-Edge and toEdge pairs for mode where flows is a dictionary
          with (fromEdgeID,toEdgeID) pair as key and number of trips as values.
docstring_tokens: Sets a demand flows between from - Edge and toEdge pairs for mode where flows is a dictionary with ( fromEdgeID toEdgeID ) pair as key and number of trips as values .
function: def add_flow(self, id_mode, id_edge, flow):
          """
          Sets a demand flows between from-Edge and toEdge pairs for mode where flows is a dictionary
          with (fromEdgeID,toEdgeID) pair as key and number of trips as values.
          """
          print 'TurnflowModes.add_turnflows', id_mode  # ,flows,kwargs
          print '  self.ids_mode.is_index()', self.ids_mode.is_index()
          if self.ids_mode.has_index(id_mode):
              id_tf_modes = self.ids_mode.get_id_from_index(id_mode)
          else:
              id_tf_modes = self.add_mode(id_mode)
          self.flowtables[id_tf_modes].add_flow(id_edge, flow)
          return self.flowtables[id_tf_modes]
function_tokens: def add_flow ( self , id_mode , id_edge , flow ) : print 'TurnflowModes.add_turnflows' , id_mode # ,flows,kwargs print '  self.ids_mode.is_index()' , self . ids_mode . is_index ( ) if self . ids_mode . has_index ( id_mode ) : id_tf_modes = self . ids_mode . get_id_from_index ( id_mode ) else : id_tf_modes = self . add_mode ( id_mode ) self . flowtables [ id_tf_modes ] . add_flow ( id_edge , flow ) return self . flowtables [ id_tf_modes ]