Find all active/reachable nodes in a graph.
Unlock detailed company stats for this questionUpgrade
Follow-up: if there are two connected components, find the nodes/edges that need to be added to make the graph connected.
Expect follow-ups like
- If there are two connected components, find the nodes or edges that need to be added to make the graph connected.
Community answers
No answers contributed by the community yet.
Related questions
In a directed graph, find all nodes reachable from a source that are also part of a cycle.Find all zones, the maximal groups of mutually reachable cities, in a directed graph.Find all nodes at distance K from a given node in a tree.Related courses

Course

Course
Course
