flatten package:containers
Returns the elements of a tree in pre-order.
flatten == Data.Foldable.toList
a
/ \ => [a,b,c]
b c
Examples
flatten (Node 1 [Node 2 [], Node 3 []]) == [1,2,3]
The vertices of a strongly connected component.
flattenSCC = toList . flattenSCC1.
This function is retained for backward compatibility,
flattenSCC1 has the more precise type.
The vertices of a strongly connected component.
The vertices of a list of strongly connected components.