#NEWLINE# def test_ch( self ) : #NEWLINE# #INDENT# gg = Graph ( ) #NEWLINE# gg . add_vertex ( 'A' ) #NEWLINE# gg . add_vertex ( 'B' ) #NEWLINE# ab = gg . add_edge ( 'A' , 'B' , Street ( 'AB' , 1 ) ) #NEWLINE# ba = gg . add_edge ( 'B' , 'A' , Street ( 'BA' , 1 ) ) #NEWLINE# absoul = gg . get_vertex ( 'A' ) . outgoing [ 0 ] . payload . soul #NEWLINE# basoul = gg . get_vertex ( 'B' ) . outgoing [ 0 ] . payload . soul #NEWLINE# ch = gg . get_contraction_hierarchies ( WalkOptions ( ) ) #NEWLINE# assert ( ch . upgraph . get_vertex ( 'A' ) . outgoing [ 0 ] . payload . soul == absoul ) #NEWLINE# assert ( ch . downgraph . get_vertex ( 'B' ) . outgoing [ 0 ] . payload . soul == basoul )