def _invalidate_edge(graph, n1, n2):
 graph[n1][n2]['heap item'][3] = False

def _invalidate_edge ( graph , n1 , n2 ) : graph [ n1 ] [ n2 ] [ 'heap item' ] [ 3 ] = False
invalidates the edge in the heap .