Add edge file calculation