g_dgl = dgl.from_networkx(G, node_attrs, edge_attrs)
However, I am having problems extracting the node_attrs from NetworkX: my nodes have many properties like “Age”, “Gender” and so. When I check my nodes attributes in NetworkX everything is visible, but everything is in a set of properties, so for example I don’t manage to get just the property “Age”:
node_attrs = list(G.nodes(data=True))
This is a list of properties of one of my nodes (not every node has the same property)
<id>: 65
Age: 34
Days: 200
Gender: F
Name: 2
I tried to convert it to NumPy array without success.
Any idea how I could get each property of my node “Age”, “Gender” and so
Thank you in advance!
Stela.
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/9395ed94-113a-414e-a7a4-4c28fde56d80n%40googlegroups.com.