#NEWLINE# @ raises ( nx . NetworkXNotImplemented ) #NEWLINE# def test_digraph( self ) : #NEWLINE# #INDENT# G = nx . DiGraph ( ) #NEWLINE# G . add_edges_from ( [ ( 0 , 1 ) , ( 1 , 2 ) ] ) #NEWLINE# self . func ( G , [ ( 0 , 2 ) ] )