

def add_edges_from(self, ebunch, **kwargs):
    "\n        Add all the edges in ebunch.\n\n        If nodes referred in the ebunch are not already present, they\n        will be automatically added.\n\n        Parameters\n        ----------\n        ebunch : container of edges\n            Each edge given in the container will be added to the graph.\n            The edges must be given as 2-tuples (u, v).\n\n        Examples\n        --------\n        >>> from pgmpy.base import UndirectedGraph\n        >>> G = UndirectedGraph()\n        >>> G.add_nodes_from(['Alice', 'Bob', 'Charles'])\n        >>> G.add_edges_from([('Alice', 'Bob'), ('Bob', 'Charles')])\n        "
    for edge in ebunch:
        self.add_edge(*edge, **kwargs)

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