#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# divider = ( '-' * 40 ) #NEWLINE# print ( divider ) #NEWLINE# for ( node , adjacent ) in self . nodes . iteritems ( ) : #NEWLINE# #INDENT# print ( '{} is adjacent to {} ' . format ( node , ', ' . join ( adjacent ) ) ) #NEWLINE# #UNINDENT# print ( self ) #NEWLINE# return ''