Kosaraju: Difference between revisions

Content added Content deleted
(K draft)
Line 778: Line 778:
c::n#-1 / assigned components
c::n#-1 / assigned components
A: {[G;x;y] $[-1=c x;[c[x]:y;G[x]o[G]'y];]}[G]'
A: {[G;x;y] $[-1=c x;[c[x]:y;G[x]o[G]'y];]}[G]'
A'/2#,L /Assign
A'/2#,L / Assign
.=c}</syntaxhighlight>
.=c}</syntaxhighlight>
<syntaxhighlight lang=K>F(1;2;0;1 2 4;3 5;2 6;5;4 6 7)
<syntaxhighlight lang=K>F(1;2;0;1 2 4;3 5;2 6;5;4 6 7)
Line 785: Line 785:
5 6
5 6
,7)</syntaxhighlight>
,7)</syntaxhighlight>

=={{header|Kotlin}}==
=={{header|Kotlin}}==
{{trans|Go}}
{{trans|Go}}