spart -- minor syntax errors fixed
RX -- for single edge