Commit cab54dbc authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Bridgeness with more links

parent 3853ea1d
......@@ -109,10 +109,10 @@ filterComs _b m = Map.filter (\n -> length n > 0) $ mapWithKey filter' m
filter' (c1,c2) a
| c1 == c2 = a
-- TODO use n here
| otherwise = take 1 $ List.sortOn (Down . snd) a
| otherwise = take n $ List.sortOn (Down . snd) a
where
_n :: Int
_n = round $ 100 * a' / t
n :: Int
n = round $ 100 * a' / t
a'= fromIntegral $ length a
t :: Double
t = fromIntegral $ length $ List.concat $ elems m
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment