toggle edge and value (Fix #69)