def METHOD_NAME(self, sampled_data):
    """Connect all related tables.
    This method iterates over all tables and adds all foreign keys to connect
    related tables.
    Args:
        sampled_data (dict):
            A dictionary mapping table names to the sampled tables (pd.DataFrame).
    """
    queue = [
        table
        for table in self.metadata.tables
        if not self.metadata._get_parent_map()[table]
    ]
    while queue:
        parent = queue.pop(0)
        for child in self.metadata._get_child_map()[parent]:
            self._add_foreign_key_columns(
                sampled_data[child], sampled_data[parent], child, parent)
            if set(self.metadata._get_all_foreign_keys(child)).issubset(
                    set(sampled_data[child].columns)):
                queue.append(child)