

def add_nodes_from(self, nodes, **kwargs):
    "\n        Add multiple nodes to the Graph.\n\n        Parameters\n        ----------\n        nodes: iterable container\n            A container of nodes (list, dict, set, etc.).\n\n        Examples\n        --------\n        >>> from pgmpy.base import UndirectedGraph\n        >>> G = UndirectedGraph()\n        >>> G.add_nodes_from(['A', 'B', 'C'])\n        "
    for node in nodes:
        self.add_node(node, **kwargs)

dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/base/UndirectedGraph.py UndirectedGraph.add_nodes_from/original