Investigation of pre-flare dynamics using the weighted horizontal magnetic gradient method: From small to major flare classesMarianna B. Korsós, Shuhong Yang and Robertus ErdélyiJ. Space Weather Space Clim., 9 (2019) A6DOI: https://doi.org/10.1051/swsc/2019002