idices in the formula for edge