Clustering and error-Correcting Matching of graphs for Learning and Recognition of Symbols in Engineering Drawings