GEC. Generalized edge cover: The use of generalized edge cover to merge two sub-templates T and T'. (a) The bipartite graph model from two sub-templates. A pair with high dissimilarity is connected with a broken edge. (b) The generalized edge cover (GEC) solution which matches each vertex to zero or more vertices on the other side. The solution tries to avoid the broken edges. (c) The sub-template obtained from the GEC solution by merging matched vertices.