DP on trees

Calculate number of paths with even sum in a tree with n nodes and n-1edges each node has some value . Path can start from any node and can end at any node