#NEWLINE# def test_cycles( self ) : #NEWLINE# #INDENT# K_undir = approx . all_pairs_node_connectivity ( K_dir . cycle ) #NEWLINE# for source in K_undir : #NEWLINE# #INDENT# for ( target , k ) in K_undir [ source ] . items ( ) : #NEWLINE# #INDENT# assert_true ( ( k == 2 ) ) #NEWLINE# #UNINDENT# #UNINDENT# K_dir = approx . all_pairs_node_connectivity ( self . directed_cycle ) #NEWLINE# for source in K_dir : #NEWLINE# #INDENT# for ( target , k ) in K_dir [ source ] . items ( ) : #NEWLINE# #INDENT# assert_true ( ( k == 1 ) )