Graph.unset_node_attribute

Graph.unset_node_attribute(key, name)[source]

Unset the attribute of a node.

Parameters:
keyint

The node identifier.

namestr

The name of the attribute.

Raises:
KeyError

If the node does not exist.

See also

node_attribute()

Notes

Unsetting the value of a node attribute implicitly sets it back to the value stored in the default node attribute dict.