parameters: (self, node1, node2)
docstring: Add connection between node1 and node2
docstring_summary: Add connection between node1 and node2
docstring_tokens: Add connection between node1 and node2
function: def add(self, node1, node2):
          """ Add connection between node1 and node2 """
  
          self._graph[node1].add(node2)
          if not self._directed:
              self._graph[node2].add(node1)
function_tokens: def add ( self , node1 , node2 ) : self . _graph [ node1 ] . add ( node2 ) if not self . _directed : self . _graph [ node2 ] . add ( node1 )