Added additional check for edge creation in calculation panel