I am adding labels with
G.add_edge(node1, node2, label=label)
drawing with
pos = nx.spring_layout(G)
nx.draw(G, pos)
nx.draw_networkx_edge_labels(G, pos)
and getting
which I don't want. I don't want label look like {'label': 'a"}
I want it be just a
.
Is it possible? I saw examples, where labels were passing into draw function, which is not good for me. I want labels to be stored in the graph and displayed later.