added solution for bridge successors with dictionary comprehension and frozenset