AncestralGraph.
add_nodes_from
Add nodes to the ancestral graph.
See also
add_node()
Examples
>>> import causaldag as cd >>> g = cd.AncestralGraph() >>> g.add_nodes_from({1, 2}) >>> len(g.nodes) 2