Added usecase for graph class