Add Graph class and a spec file for it.