added reading closest graphs and etc