Fix 'create_graphs' for cacti