add graph class