First working version of a PersistentGraph.