#NEWLINE# @ classmethod #NEWLINE# def graph_from_items( cls , items ) : #NEWLINE# #INDENT# def edges_from_items( items ) : #NEWLINE# #INDENT# for i in items : #NEWLINE# #INDENT# for d in i . depends : #NEWLINE# #INDENT# ( yield ( i , d ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return digraphtools . graph_from_edges ( edges_from_items ( edges_from_items ) )