Tangent space embedding

Different connectivity measures, including tangent space measure
if these functions are not used outside of this module, they could be private:

def _map_eig(function, vals, vec):
     """Return the symmetric matrix with eigenvectors vecs and eigenvalues
+ obtained by applying the function to vals."""
    return np.dot(vecs * function(vals), vecs.T)