Hey everyone I am in a pickle involving the sequence of events when graph.on('remove') is called. To make this simple let's say I have three elements on a graph with two links joining them all.

When I delete element 2(container) it removes link 1 and removes the container(2), then deletes link 2 but the logic in my code when deleting link 2 requires to know the container(2) which has already been deleted. One might say "just don't delete the container on the first de link" which is a valid thought but users have the ability to just have container(2) and link 1 without having a link 2 or volume(3) so then when they delete container that object would still be in the data base and cause problems. I am wondering if there is a way to determine what order things are deleted. If the de link 2 was called, then de link 1, then delete container(2) it would be quite easy but haven't found anything in the documentation on that. Also if this doesn't make sense just let me know and I will give more information.
Thank you,
Mat