Helper functions to transform social network data collected in wide format to networks, calculate node-level network metrics (centrality, reciprocity, homophily, diversity), and run node permutation tests.