A custom hook that removes an element from the graph by its ID.
A function that removes the element from the graph.
const removeElement = useRemoveElement();removeElement('1'); Copy
const removeElement = useRemoveElement();removeElement('1');
A custom hook that removes an element from the graph by its ID.