def setGraph(nCount, edges):
    """
    Boilerplate method to set graph
    returns graph
    :param: nCount number of nodes in graph - n nodes
    :param: edges list of edges in graph
    """
    g=dict()

    # setting the nodes
    # create dict with key and value as node
    for _t,_e in edges:
        if _t not in g.keys():
            g[_t]=[_e]
        else:
            g[_t].append(_e)
        if _e not in g.keys():
            g[_e]=[_t]
        else:
            g[_e].append(_t)
    
    # updates the dict for zombie nodes
    g.update({k:[] for k in range(1,nCount+1) if k not in g.keys()})
    
    return g