

def add_edge(self, u, v, **kwargs):
    "\n        Add an edge between u and v.\n\n        The nodes u and v will be automatically added if they are\n        not already in the graph\n\n        Parameters\n        ----------\n        u,v : nodes\n            Nodes can be any hashable Python object.\n\n        Examples\n        --------\n        >>> from pgmpy.base import UndirectedGraph\n        >>> G = UndirectedGraph()\n        >>> G.add_nodes_from(['Alice', 'Bob', 'Charles'])\n        >>> G.add_edge('Alice', 'Bob')\n        "
    super(UndirectedGraph, self).add_edge(u, v, **self)

dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/base/UndirectedGraph.py UndirectedGraph.add_edge/VarMisuse@33/216 `kwargs`->`self`