Modify graph implementation.