#NEWLINE# def test_add_edge_effects_vertices( self ) : #NEWLINE# #INDENT# g = Graph ( ) #NEWLINE# fromv = g . add_vertex ( 'home' ) #NEWLINE# tov = g . add_vertex ( 'work' ) #NEWLINE# s = Street ( 'helloworld' , 1 ) #NEWLINE# e = g . add_edge ( 'home' , 'work' , s ) #NEWLINE# assert ( fromv . degree_out == 1 ) #NEWLINE# assert ( tov . degree_in == 1 ) #NEWLINE# g . destroy ( )