B.add_nodes_from(a, bipartite=1)
B.add_nodes_from(b, bipartite=0)
nx.draw(B, with_labels = True)
plt.savefig("graph.png")
I am getting the following figure. How can I make it look like a proper bipartite graph?
See Question&Answers more detail:os