#NEWLINE# def draw( self , filename = None ) : #NEWLINE# #INDENT# fn = fn #NEWLINE# if ( fn is None ) : #NEWLINE# #INDENT# fn = self . filename #NEWLINE# #UNINDENT# self . graph . write ( 'file.dot' ) #NEWLINE# self . graph . layout ( prog = 'dot' ) #NEWLINE# self . graph . draw ( fn )