Discrete gradient methods for port-Hamiltonian differential-algebraic equations | Synapse