Exponential Family Graph Matching and Ranking