Converted the parser for edge constraints.