Graph Representation Learning for Graph-Level Classification and Anomaly Detection