sccContaining

fun sccContaining(agent: A): Set<A>?(source)

The strongly connected component containing agent, or null if agent has no incident edges. Cheaper than calling stronglyConnectedComponents when only one SCC is needed, but still O(V + E) in the worst case.