File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -493,10 +493,10 @@ dff g = dfs g (vertices g)
493
493
-- This function deviates from King and Launchbury's implementation by
494
494
-- bundling together the functions generate, prune, and chop for efficiency
495
495
-- reasons.
496
- dfs :: Graph -> [Vertex ] -> Forest Vertex
496
+ dfs :: Graph -> [Vertex ] -> [ Tree Vertex ]
497
497
dfs g vs0 = run (bounds g) $ go vs0
498
498
where
499
- go :: [Vertex ] -> SetM s ( Forest Vertex )
499
+ go :: [Vertex ] -> SetM s [ Tree Vertex ]
500
500
go [] = pure []
501
501
go (v: vs) = do
502
502
visited <- contains v
@@ -743,7 +743,7 @@ bcc g = concatMap bicomps forest
743
743
dnum = preArr (bounds g) forest
744
744
745
745
-- Wraps up the component of every child of the root
746
- bicomps :: Tree Vertex -> Forest [Vertex ]
746
+ bicomps :: Tree Vertex -> [ Tree [Vertex ] ]
747
747
bicomps (Node v tws) =
748
748
[Node (v : curw [] ) (donew [] ) | (_, curw, donew) <- map collect tws]
749
749
You can’t perform that action at this time.
0 commit comments