Let d1 be the sum of edges in the up-right direction , and d2 be the sum of edges in the down-right direction .
Let d1 be the sum of edges in the down-right direction , and d2 be the sum of edges in the up-right direction .