refactor graph file import