Problem 2192 · Medium

All Ancestors of a Node in a Directed Acyclic Graph

List every vertex that can reach each node in a directed acyclic graph. The visual propagates the ancestor sets along the edges in topological order.

Open the interactive visualisation