g = Graph({1:[2,5],2:[1,3],3:[2,4],4:[3,5],5:[4,1]}) creates a graph
g.plot()
g.is_bipartite() //checks whether the graph is bipartite
False    //final output

Kreyszig-21.8-6-U (last edited 2010-12-18 07:57:58 by Aditya J)