// Partition this collection's directed subgraph into strongly connected components
eles.tarjanStronglyConnected(): TarjanStronglyConnectedResultPartition this collection's directed subgraph into strongly connected components. Traversal follows edge direction; self-loops do not join otherwise separate nodes. The implementation is iterative, so deep graphs do not consume the JavaScript call stack.
TarjanStronglyConnectedResult{ components, cut }: each component collection contains its nodes and internal edges; cut contains edges between components
Example
console.log(eles.tarjanStronglyConnected().components.length); // 3Also spelled eles.tsc, eles.tscc, eles.tarjanStronglyConnectedComponents.