#NEWLINE# def addEdges( self , edgeList , edgeValues = None ) : #NEWLINE# #INDENT# '\n        Add a set of edges to the tree\n\n        :param edgeList: A list of pairs of vertex names\n        :type edgeList: :class:`list`\n\n        :param edgeValues: A list of corresponding vertex values\n        :type edgeValues: :class:`list`\n        ' #NEWLINE# i = 0 #NEWLINE# for edge in edgeList : #NEWLINE# #INDENT# ( vertexId1 , vertexId2 ) = edge #NEWLINE# if ( edgeValues == None ) : #NEWLINE# #INDENT# value = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = edge [ i ] #NEWLINE# #UNINDENT# self . addEdge ( vertexId1 , vertexId2 , value )