Graph Embedding Via Subspace Minimization With Applications To Chip Placement And Semi-Supervised Learning