Function: DeleteEventSequenceNode()
DeleteEventSequenceNode(
selectedNode,currentNodes,currentEdges):OnUpdateOrDeleteGraphState
Defined in: utils/treeUtils.ts:503
Delete an event sequence node, check necessary validations before deleting the node
Parameters
selectedNode
Node<EventSequenceNodeProps, EventSequenceNodeTypes>
selected node to be deleted
currentNodes
Node[]
list of current nodes
currentEdges
Edge[]
list of current edges
Returns
List of nodes and edges which need to be updated, along with a flag 'updateState' (if true, make API call as well). The function returns undefined if the selected node cannot be deleted
Throws
Error - if incoming or outgoing edge is not found for the node
