Initial graph and persistent list implementation.