A Representation of bipartite graphs by digraphs and its programming application