reading graph is finished