graph class create