Online security detection of power grid based on graph calculation | Synapse