Reversible and irreversible bracket-based dynamics for deep graph neural networks