Anomaly Detection in Graphs and Time Series: Algorithms and Applications