Graph data structure and reading out dataset files