Graph Representation Learning for Classification and Anomaly Detection