You would need to implement a new DataAccess type. The knowledge of the graph data structure is not necessary, still it is a bit described here: https://github.com/graphhopper/graphhopper/blob/master/docs/core/technical.md
See also this related topic: Readonly DataAccess for InputStreams instead of Files
Is your use case ‘making graph updates available in a distributed setup’?