Manipulating Computation Graphs