How to print out a network in peersim? [closed]

Peersim is a peer-to-peer network simulator. I'm simply trying to get the program to print out the network (an edge list is fine). Presumably this is possible, since there is an in-built writeEdgeList function.

I suspect there is an easy way to do this by modifying this line in the example: include.control io degree (Section 5 in tutorial 2) which instead prints out a table that lists the number of nodes with certain degrees. But I don't know what to change "degree" to.

Question: How do I print out an edge list of a network in Peersim?