def bfs10406(bfs10403):
  bfs10405 = {}
  for (key, values) in list(bfs10403.items()):
    for value in values:
      if (value not in bfs10405):
        bfs10405[value] = set()

      bfs10405[value].add(key)


  return bfs10405

