finished readGraph more or less