graph class