modified adapter to retrieve the graph via memory