parameters: (self, graph_edge)
docstring: Adds an edge object to the graph.
          
          It takes a edge object as its only argument and returns
          None.
docstring_summary: Adds an edge object to the graph.
          
          It takes a edge object as its only argument and returns
          None.
docstring_tokens: Adds an edge object to the graph . It takes a edge object as its only argument and returns None .
function: def add_edge(self, graph_edge):
          """Adds an edge object to the graph.
          
          It takes a edge object as its only argument and returns
          None.
          """
  
          if not isinstance(graph_edge, Edge):
              raise TypeError('add_edge() received a non edge class object')
  
          edge_points = (graph_edge.get_source(), graph_edge.get_destination())
  
          if edge_points in self.obj_dict['edges']:
  
              edge_list = self.obj_dict['edges'][edge_points]
              edge_list.append(graph_edge.obj_dict)
  
          else:
  
              self.obj_dict['edges'][edge_points] = [ graph_edge.obj_dict ]
  
          graph_edge.set_sequence(self.get_next_sequence_number())
  
          graph_edge.set_parent_graph(self.get_parent_graph())
function_tokens: def add_edge ( self , graph_edge ) : if not isinstance ( graph_edge , Edge ) : raise TypeError ( 'add_edge() received a non edge class object' ) edge_points = ( graph_edge . get_source ( ) , graph_edge . get_destination ( ) ) if edge_points in self . obj_dict [ 'edges' ] : edge_list = self . obj_dict [ 'edges' ] [ edge_points ] edge_list . append ( graph_edge . obj_dict ) else : self . obj_dict [ 'edges' ] [ edge_points ] = [ graph_edge . obj_dict ] graph_edge . set_sequence ( self . get_next_sequence_number ( ) ) graph_edge . set_parent_graph ( self . get_parent_graph ( ) )