Add initial implementation of a persistent graph.