Pattern-Based Graph Classification: Comparison of Quality Measures and Importance of Preprocessing