def authority_matrix(G, nodelist=None):
 M = nx.to_numpy_matrix(G, nodelist=nodelist)
 return (M.T * M)

def authority_matrix ( G , nodelist = None ) : M = nx . to_numpy_matrix ( G , nodelist = nodelist ) return ( M . T * M )
return the hits authority matrix .