implemented print graph
if the graph is bipartite or not