def remove_node(node_id_to_remove, process_dict, bpmn_diagram, sequence_flows):
new_source_node = remove_incoming_connection(node_id_to_remove, bpmn_diagram, sequence_flows)<EOL>new_target_node = remove_outgoing_connection(node_id_to_remove, bpmn_diagram, sequence_flows)<EOL>bpmn_diagram.diagram_graph.remove_node(node_id_to_remove)<EOL>process_dict.pop(node_id_to_remove, None)<EOL>return new_source_node, new_target_node<EOL>
:param node_id_to_remove:
:param process_dict:
:param bpmn_diagram:
:param sequence_flows:
:return: