added in-mem graph and abstract interfaces