Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toGraph l graf = concat $ map f l
- where
- f label = toGraph label graf
- toGraph l n:ns
- | l == getLabel n = [n]
- | otherwise = toGraph l ns
- toGraph l [] = []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement