<jupyter_start><jupyter_text>![graphhhh.png](attachment:graphhhh.png)<jupyter_code>from collections import deque 
def search_using_dfs(graph,person_to_search = "jonny"):
    search_queue = deque()
    search_queue += graph["you"] 
 
    while search_queue : #if the queue is not empty
        current_person = search_queue.popleft()
        if current_person == person_to_search:
            return "Yes you Found " + current_person
        else :
            search_queue+= graph[current_person]
        
        
    return "No we didnot find who you were looking in your connections"   
        
        
    
    



    
search_using_dfs(graph,"thom")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08454810495626822, 'fraction_numerical': 0.0, 'mean_word_length': 2.7747252747252746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '561108', 'license': 'MIT', 'n_tokens_mistral': 217, 'n_tokens_neox': 211, 'n_words': 45, 'path': 'Python_Learning/Untitled.ipynb', 'repo_name': 'poshakjaiswal/Machine_Learning', 'size': '686'}