Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
p=Graph({1:[2,3,7],2:[1,8,4],3:[1,4,5],4:[2,3,6],5:[3,6,7],6:[4,5,8],7:[1,5,8],8:[2,6,7]});
p.plot()
p.is_bipartite()
True //given graph is bipartite
p.bipartite_sets()
(set([8, 1, 4, 5]), set([2, 3, 6, 7])) //two sets of the bipartite graph p
Solution by:
<J.Aditya>, <Student>, <Snist>
