#NEWLINE# def print_graph( self , deps_graph , registry ) : #NEWLINE# #INDENT# ' Simple pretty printing of a deps graph, can be improved\n        with options, info like licenses, etc\n        ' #NEWLINE# self . _out . writeln ( 'Requirements' , Color . BRIGHT_YELLOW ) #NEWLINE# for node in sorted ( deps_graph . nodes ) : #NEWLINE# #INDENT# ( ref , _ ) = node #NEWLINE# if ( not ref ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# remote = registry . get_ref ( ref ) #NEWLINE# from_text = ( 'from local' if ( not remote ) else ( 'from %s' % remote . name ) ) #NEWLINE# self . _out . writeln ( ( '    %s %s' % ( repr ( ref ) , from_text ) ) , Color . BRIGHT_CYAN ) #NEWLINE# #UNINDENT# self . _out . writeln ( 'Packages' , Color . BRIGHT_YELLOW ) #NEWLINE# for node in sorted ( deps_graph . nodes ) : #NEWLINE# #INDENT# ( ref , conanfile ) = node #NEWLINE# if ( not ref ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ref = PackageReference ( ref , conanfile . info . package_id ( ) ) #NEWLINE# self . _out . writeln ( ( '    %s' % repr ( ref ) ) , Color . BRIGHT_CYAN ) #NEWLINE# #UNINDENT# self . _out . writeln ( '' )