def display(self, mode='dot'):
        '''
        Displays the current graph via dotty
        '''

        if  mode == 'neato':
            self.save_dot(self.temp_neo)
            neato_cmd = "%s -o %s %s" % (self.neato, self.temp_dot, self.temp_neo)
            os.system(neato_cmd)
        else:
            self.save_dot(self.temp_dot)

        plot_cmd = "%s %s" % (self.dotty, self.temp_dot)
        os.system(plot_cmd)
def display ( self , mode = 'dot' ) : if mode == 'neato' : self . save_dot ( self . temp_neo ) neato_cmd = "%s -o %s %s" % ( self . neato , self . temp_dot , self . temp_neo ) os . system ( neato_cmd ) else : self . save_dot ( self . temp_dot ) plot_cmd = "%s %s" % ( self . dotty , self . temp_dot ) os . system ( plot_cmd )
Displays the current graph via dotty