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
Load the edges map from the dump file, and filter it to only
dataset/ETHPy150Open adblockplus/gyp/tools/graphviz.py/LoadEdges