Add a parameter which allows nodes to be manually placed horizontally. Now if xpos is specified as a parameter to each node, then it will override the x-position as calculated.