It would be nice if `add_node` and `add_edge` returned True if the node/edge was added and False if it was not added because it was already present.