Tarjan: Difference between revisions
Content added Content deleted
(J) |
m (→{{header|J}}) |
||
Line 628: | Line 628: | ||
<syntaxhighlight lang=J>tarjan=: {{ |
<syntaxhighlight lang=J>tarjan=: {{ |
||
cocurrent temp=. cocreate'' |
cocurrent temp=. cocreate'' |
||
coerase temp NB. (names defined below with =: will be erased on exit from tarjan) |
|||
coerase temp |
|||
graph=: y NB. connection matrix of a directed graph |
graph=: y NB. connection matrix of a directed graph |
||
result=: stack=: i.index=: 0 |
result=: stack=: i.index=: 0 |