docs: def is_connected(H, source_node, target_node):
      """Checks if a target node is connected to a source node. That is,
      this method determines if a target node can be visited from the source
      node in the sense of the 'Visit' algorithm.
  
      Refer to 'visit's documentation for more details.
  
      :param H: the hypergraph to check connectedness on.
      :param source_node: the node to check connectedness to.
      :param target_node: the node to check connectedness of.
      :returns: bool -- whether target_node can be visited from source_node.
  
      """
      visited_nodes, Pv, Pe = visit(H, source_node)
      return target_node in visited_nodes