def authority_matrix(G,nodelist=None):
    M=nx.to_numpy_matrix(G,nodelist=nodelist)
    return M.T*M
Return the HITS authority matrix.
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/link_analysis/hits_alg.py/authority_matrix