#NEWLINE# def test_graph_union( self ) : #NEWLINE# #INDENT# graph_1 = ( ( alice_knows_bob | alice_likes_carol ) | carol_dislikes_bob ) #NEWLINE# graph_2 = ( ( carol_dislikes_bob | carol_married_to_dave ) | dave_works_for_dave ) #NEWLINE# graph = ( graph_1 | graph_2 ) #NEWLINE# assert ( order ( graph ) == 4 ) #NEWLINE# assert ( size ( graph ) == 5 ) #NEWLINE# assert ( graph . nodes ( ) == ( ( ( alice | bob ) | carol ) | dave ) . nodes ( ) )