src/graph_list.c: Use the "graph_inst_foreach" function.