Problem 1557 · Medium

Minimum Number of Vertices to Reach All Nodes

Find the smallest set of starting nodes that can reach the whole graph by collecting nodes with no incoming edges. The visual highlights nodes that have an incoming arrow.

Open the interactive visualisation