Odd and Even Factors of Graphs with Given Properties