Python codes used to construct and to analyze an affiliation network of NHL players