bug fix in the prob_connected function
#45
+2
−2
prob_connected function
#45