Do convert graph (set of tuples into proper map).

The resulting map represents accessible nodes from the others, like the
way you draw the graph.