I doubt it's true division as this would be all 0's (common neighbors means they should have at least degree 2).  Also no reason to call `list`
```python
sum(map(lambda d: 1.0 / d, G.degree(cn_list).values())
```