#NEWLINE# def setCascadingHighlightNodesFromOrderedDependencies( self , dagNodeOrigin ) : #NEWLINE# #INDENT# '\n        Recover a list of ordered dependencies for a given dag node, and \n        highlight each of the nodes it depends on.\n        ' #NEWLINE# highlightDrawNodesDarkToLight = [ self . drawNode ( n ) for n in self . dag . orderedNodeDependenciesAt ( dagNodeOrigin , onlyUnfulfilled = False ) ] #NEWLINE# intensities = list ( ) #NEWLINE# nodeCount = len ( highlightDrawNodesDarkToLight ) #NEWLINE# if ( nodeCount > 1 ) : #NEWLINE# #INDENT# for i in range ( nodeCount ) : #NEWLINE# #INDENT# intensities . append ( ( 0.65 + ( ( 0.35 * float ( i ) ) / float ( ( nodeCount - 1 ) ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# intensities = [ 1.0 ] #NEWLINE# #UNINDENT# self . setHighlightNodes ( highlightDrawNodesDarkToLight , intensities )