From NMNR-coloring of hypergraphs to homogenous coloring of graphs