9. For a cube, either one of its edges is painted red, or all are painted black, with each face having at least one edge painted black. The minimum number of black edges is ( ).
(A) 2.
(B) 3.
(C) 4.
(D) 5.
(E) 6.
B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.