check if edges for each vertex are even