human
Solve the following python programming problem given the following code:
def edit_distance(network1, network2) : 
    'Returns the edit distance between two networks.
    
    This is a good (but not the only one) metric for determining similarity
    between two networks.  
    
    ' 
    def inverse(edge) : 
        return (edge [1], edge [0]) 
edges1 = copy (list (network1.edges)) 
    edges2 = copy (list (network2.edges)) 
    dist = 0 
    for edge in edges1 : 
        if (edge in edges2) : 
            edges2.remove (edge) 
else : 
            if (inverse (edge) in edges2) : 
                dist += 1 
                edges2.remove (inverse (edge)) 
else : 
                dist += 1 
dist += len (edge) 
    return dist 

    
    

    Fix the buggy line: dist += len (edge)
assistant
#Here is Python program to fix the buggy line: dist += len (edge)
.

dist += len (edges2)