get_node_attributes
Returns the value of the node attribute that is specified by the name parameter as a dictionary.
sasviya.network.utils.utils.get_node_attributes(g, attr)
Parameters
- g : SAS graph object
-
Specifies the input graph to assess.
- attr : str
-
Specifies the name of the node attribute.
Returns
- dict
-
Returns a dictionary in which the keys are the nodes and the values are the attribute values.
Last updated: July 28, 2026