Destroy the current graph instance
destroy(): void;
After destruction, no operations can be performed. If you need to reuse it, you need to create a new graph instance