Removing edges on node deletion in mxGraph

If a node b from the constellation a->b->c gets deleted by the user in the Graph Editor example, using mxGraph, then its adjacent edges stay put, hence the graph transforms to: a*-> ->*c. How can the adjacent edges to the deleted node also be deleted or, even better, converted to one edge, which connects a to c (a->c)?