A tool for detection and merging of isomorphic subgraphs