Add a SimpleGraph interface with Density(), and implement it.