Made a file parser, trying to make graph work properly