2024-10-15 23:05:53 +03:00

2 lines
72 B
TypeScript

export default function tarjan<T>(graph: Map<T, Set<T>>): Array<Set<T>>