dynamics on Quentum Graphs as constrained systems