Dimensionality reduction with adaptive graph