initial work on graph translation to 1d layout (does not handle branching)