Is there a problem of graph coloring (and what is its name) defined as: If a node is colored with one color all adjacent nodes will have the same color. What is minimal number of colors to do that?
For example, for graph shown on Picture, the minimal number of colors is 4.

PS. When you start from one node (randomly) you color it and all adjacent nodes in the same color (for example red). When you do that, red cannot be used any more.
The problem, as edited, is a reformulation of the dominating set problem (minimal number of vertices that need to be marked such that all other vertices are adjacent to a marked vertex), which is NP-complete.