Dimension Reduction with Locally Adjusted Graphs