The b-chromatic number of certain graphs and digraphs