[FIX] signs in directed_difference/_E

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>