added function to init name in c_function_graphic class