it looks like you are breaking apart an edge list in lines 111 through 118 and then putting them back together on line 121

do you need to do any of that?

could you just directly say 

```
scored_pairs = numpy.asarray(adjacency_matirx(sub_graph))
```