parameters: (filename, targets)
return_statement: return target_edges
docstring: Load the edges map from the dump file, and filter it to only
    show targets in |targets| and their depedendents.
docstring_summary: Load the edges map from the dump file, and filter it to only
    show targets in |targets| and their depedendents.
docstring_tokens: Load the edges map from the dump file and filter it to only show targets in |targets| and their depedendents .
function: def LoadEdges(filename, targets):
    """Load the edges map from the dump file, and filter it to only
    show targets in |targets| and their depedendents."""
  
    file = open('dump.json')
    edges = json.load(file)
    file.close()
  
    # Copy out only the edges we're interested in from the full edge list.
    target_edges = {}
    to_visit = targets[:]
    while to_visit:
      src = to_visit.pop()
      if src in target_edges:
        continue
      target_edges[src] = edges[src]
      to_visit.extend(edges[src])
  
    return target_edges
function_tokens: def LoadEdges ( filename , targets ) : file = open ( 'dump.json' ) edges = json . load ( file ) file . close ( ) # Copy out only the edges we're interested in from the full edge list. target_edges = { } to_visit = targets [ : ] while to_visit : src = to_visit . pop ( ) if src in target_edges : continue target_edges [ src ] = edges [ src ] to_visit . extend ( edges [ src ] ) return target_edges