use dir with .graph files directly as parametter