Generalized Elastic Graph Matching for Face Recognition