added create_graph due to faulty copy()