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

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