AncestralGraph
Add nodes to the ancestral graph.
nodes – an iterable of hashable Python objects
See also
add_node
Examples
>>> from graphical_models import AncestralGraph >>> g = AncestralGraph() >>> g.add_nodes_from({1, 2}) >>> len(g.nodes) 2