Changed Graph.add_node()