ws_l - Calculate the expected average distance of the WS model
Calculate the expected average distance of the WS model. K is the average degree of the WS model, P is the probability of rewiring edges. Note K is even here.
dis=ws_l(4,0.5,10000)
ba_l ,