preprare c_graph class