#NEWLINE# def add_node( self , node , label = None , color = 'black' ) : #NEWLINE# #INDENT# if ( not self . withcolor ) : #NEWLINE# #INDENT# color = 'black' #NEWLINE# #UNINDENT# if ( label is None ) : #NEWLINE# #INDENT# self . graph . add_node ( str ( color ) , color = color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . graph . add_node ( str ( node ) , label = label , color = color )