Common R Scripts and Utilities Used by the Statnet Project