Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. toGraph l graf = concat $ map f l
  2.     where
  3.         f label = toGraph label graf
  4.         toGraph l n:ns
  5.             | l == getLabel n = [n]
  6.             | otherwise = toGraph l ns
  7.         toGraph l [] = []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement