networkx draw networkx layout by labels code example
Example 1: networkx draw labels
>>> G.add_edges_from([(1, 2), (1, 3)])
Example 2: networkx draw labels
>>> G.number_of_nodes()
8
>>> G.number_of_edges()
3
>>> G.add_edges_from([(1, 2), (1, 3)])
>>> G.number_of_nodes()
8
>>> G.number_of_edges()
3