init c_graph class and deleted somes usless function in c_graph class