Connectivity detection in application to spike-wave discharge study