corrected clustering when we have edge direction event