a simple implementation for store graph and indexes into file and read
them to search: test successfully! //TODO: Divide the read and write
separately for clarity.