#read IDs into %edges using match operator /(\S*)(\t)(\S*)/ and special variables $1, $3 for each ID per line #assign IDs as format $edge{ID1,ID2} #skip edge assignment if ID2,ID1 already exists .. the network needs to be undirected such that ID2-ID1 is equivalent to ID1-ID2 and should therefore not be counted twice #populate hash of unique IDs from %edges #create array of unique IDs from hash of unique IDs .... @uniqIDs, $uniqIDs[0]=ID1, uniqIDs[1]=ID2 etc .. how do i do this? #initialize degree counter hash (IDs are keys, values are degrees) using @uniqIDs with foreach #go through %edges and increment %counter for each ID #generate random network with rand(int(scalar(@uniqIDs))), discard random picks if they already exist or represent undirected equivalent #initialize random network degree counter hash, and then count random network degrees as before