Some python code for anomaly detection in graphs