Input prepare job

Convert a graph in the form "sid \t did" to the maxflow form