Abstract An f-coloring of a graph G is an edge-coloring of G such that each color appears at each vertex v ∈ V(G) at most f(v) times. The f-core of G is the subgraph of G induced by the vertices v of degree d(v) = f(v)maxv∈y(G){ [d(v)/f(v)l}. In this paper, we find some necessary conditions for a simple graph, whose f-core has maximum degree two, to be of class 2 for f-colorings.