Edge Condition In Both Direction Definition