eliminate non-braced if statements in graph