fixed faulty logic for numeric edge constraint