Changed Order of Condition and Command in Graph Layout