fix dependency + switch to numEdgeConstraints