Formal Methods for Mining Structured Objects by