Discovery of Frequent Substructures