g=Graph()
 g = Graph({1:[2,3],2:[1,4],3:[1,4],4:[2,3]});
 g.plot()

g.is_bipartite()
True //output