'Add node to graph
attr_dict: attribute dict (optional)
attrs: more attributes (optional)
warning: updates attr_dict with attrs'

def add_node(self, node, attr_dict=None, **attrs):

    attr_dict = ({} if (attr_dict is None) else attr_dict)
    attr_dict.update(attrs)
    self.node[node] = attr_dict
