Dimensionality Reduction by Weighted Connections between Neighborhoods