Added ability to impose edge (block) constraint