This should be called when the simulation is initialized. It adds headers to the file that will record the network structure over time.
file-print "tick\tFromNode\t ToNode"
This should be called every time step (or at whatever interval you need to record the network data).
;;See http://groups.yahoo.com/group/netlogo-users/message/8074 for more info
let network map [ [ (list who [who] of link-neighbors ) ] of ? ] sort turtles
let fromnode first ?
foreach but-first ?
;;There's probably a smarter way to do this, but I can't figure out the syntax
file-print "" ;;make a newline