<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def edgelist_to_adjacency(edgelist):
 """Converts an iterator of edges to an adjacency dict. Args: edgelist (iterable):
 An iterator over 2-tuples where each 2-tuple is an edge. Returns: Nv is the neighbors of v as an set. """

    adjacency = dict()
    for u, v in edgelist:
        if u in adjacency:
            adjacency[u].add(v)
        else:
            adjacency[u] = {v}
        if v in adjacency:
            adjacency[v].add(u)
        else:
            adjacency[v] = {u}
    return adjacency