#NEWLINE# def set_edge_state( self , edge_from , edge_to , state = 'default' ) : #NEWLINE# #INDENT# ' Mark a node as active by changing the attributes ' #NEWLINE# assert hasattr ( self , 'graph' ) #NEWLINE# edge = self . graph . get_edge ( edge_from , edge_to ) #NEWLINE# for e in self . graph . edges_iter ( ) : #NEWLINE# #INDENT# self . set_edge_style ( self , 'default' ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . set_edge_style ( edge , state ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . set_edge_style ( edge , 'default' )