Changepoint Detection over Graphs with the Spectral Scan Statistic