#NEWLINE# def __len__( self ) : #NEWLINE# #INDENT# _len = [ ] #NEWLINE# for key in self . vertices : #NEWLINE# #INDENT# _len += self . vertices [ key ] [ 'edges' ] #NEWLINE# #UNINDENT# return len ( set ( self ) )