BaseNetwork.unset_node_attribute

BaseNetwork.unset_node_attribute(key, name)

Unset the attribute of a node.

Parameters
  • key (int) – The node identifier.

  • name (str) – The name of the attribute.

Raises

KeyError – If the node does not exist.

Notes

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