Graph sequence matching by decision tree navigation