code: def add_node_attribute(self, node, attr):
          
          self.node_attr[node] = self.node_attr[node] + [attr]
docs: Add attribute to the given node.
  
          @type  node: node
          @param node: Node identifier
  
          @type  attr: tuple
          @param attr: Node attribute specified as a tuple in the form (attribute, value).