Scilab Function
Last update : 5/9/2006

ws_l - Calculate the expected average distance of the WS model

### Calling Sequence

  `dis = ws_l(K,P,N)`

### Parameters

- `K` : a real number
- `P` : a real number
- `N` : integer
- `dis` : a real number

### Description

  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.

### Examples

       dis=ws_l(4,0.5,10000)

### See Also

`ba_l` ,

### Authors

  Wubo