#NEWLINE# def __setitem__( self , * args ) : #NEWLINE# #INDENT# ( key , vertices ) = self #NEWLINE# vertices [ 'edges' ] = list ( set ( vertices [ 'edges' ] ) ) #NEWLINE# vertices [ 'node' ] = key #NEWLINE# self . vertices [ key ] = vertices #NEWLINE# self . node_count += 1 #NEWLINE# return self . vertices [ key ]