Added generate edge weights for EHS