I have a network of nodes created using python networkx. i want to store information in nodes such that i can access the information later based on the node lab
networkx
Apparently now
G.node[1]['name'] = 'alpha'
do not work anymore.
I used this : https://networkx.github.io/documentation/stable/reference/classes/generated/networkx.Graph.nodes.html
adding an s at node :
G.nodes[1]['name'] = 'alpha'