diff options
Diffstat (limited to 'Source/Graph')
-rw-r--r-- | Source/Graph/Graph.ssc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Graph/Graph.ssc b/Source/Graph/Graph.ssc index dcbd12a3..12f7fd8c 100644 --- a/Source/Graph/Graph.ssc +++ b/Source/Graph/Graph.ssc @@ -435,7 +435,7 @@ public class Graph<Node> { }
// mark root so it won't be used again
incomingEdges[rootIndex] = -1;
- Node root = numberToNode[rootIndex].Val;
+ Node root = numberToNode[rootIndex].Val; sorted.Add(root);
++sortedIndex;
foreach (Node s in this.Successors(root)){
|