Add node to the DAG.
node
node – a hashable Python object
See also
add_nodes_from
Examples
>>> from graphical_models import DAG >>> g = DAG() >>> g.add_node(1) >>> g.add_node(2) >>> len(g.nodes) 2