find out the problem of remove_useless_nodes, need to modify remove_port in dfg_graph