Graph Construction for Learning with Unbalanced Data