Convert a logged bit graph into a proper graph, adding start of optimization