#NEWLINE# def test_tensor_product_combinations( ) : #NEWLINE# #INDENT# P5 = nx . path_graph ( 5 ) #NEWLINE# K3 = nx . complete_graph ( 3 ) #NEWLINE# G = tensor_product ( P5 , K3 ) #NEWLINE# assert_equal ( nx . number_of_nodes ( G ) , ( 5 * 3 ) ) #NEWLINE# G = tensor_product ( P5 , nx . MultiGraph ( K3 ) ) #NEWLINE# assert_equal ( nx . number_of_nodes ( G ) , ( 5 * 3 ) ) #NEWLINE# G = tensor_product ( nx . MultiGraph ( K3 ) , K3 ) #NEWLINE# assert_equal ( nx . number_of_nodes ( G ) , ( 5 * 3 ) ) #NEWLINE# G = tensor_product ( nx . MultiGraph ( P5 ) , nx . MultiGraph ( K3 ) ) #NEWLINE# assert_equal ( nx . number_of_nodes ( G ) , ( 5 * 3 ) ) #NEWLINE# G = tensor_product ( nx . DiGraph ( P5 ) , nx . DiGraph ( K3 ) ) #NEWLINE# assert_equal ( nx . number_of_nodes ( G ) , ( 5 * 3 ) )