tarjan-graph
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -136,3 +136,3 @@ function Vertex(name, successors) { | ||
w.onStack = false; | ||
scc.unshift(w); | ||
scc.push(w); | ||
} while (w !== v); | ||
@@ -145,3 +145,5 @@ | ||
V.forEach(function(v) { | ||
stronglyConnect(v); | ||
if (v.index < 0) { | ||
stronglyConnect(v); | ||
} | ||
}); | ||
@@ -148,0 +150,0 @@ |
{ | ||
"name": "tarjan-graph", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ |
6080
153