Graphs with 1-factors