#NEWLINE# def digraph( self , files = [ ] ) : #NEWLINE# #INDENT# '\n        Create a graph object\n        ' #NEWLINE# modules = [ ] #NEWLINE# for _file in files : #NEWLINE# #INDENT# module = os . path . basename ( _file ) #NEWLINE# modulename = module . split ( '.yang' ) [ 0 ] #NEWLINE# if ( '@' in modulename ) : #NEWLINE# #INDENT# modulename = modulename . split ( '@' ) [ 0 ] #NEWLINE# #UNINDENT# modules . append ( modulename ) #NEWLINE# #UNINDENT# title = ( modulename [ 0 ] if ( len ( modules ) == 1 ) else 'Dependency Graph' ) #NEWLINE# return self . _gen_graph ( modules , title )