Input is a graph G=(V,E) (possibly with cycles) of n nodes and m directed edges.
Output is a set of components C, and a mapping from nodes to components of interreachability, and edges D
between components denoting one-way reachability.
Properties:
How would you do it? Let's try an example.