On the unification of the graph matching and the graph edit distance problems