A unifying framework for relational structure matching