Commit 642b9ec7 authored by Alp Mestanogullari's avatar Alp Mestanogullari

computeConfluences was forgetting to build half the adjacency matrix

parent e7bd6771
......@@ -226,7 +226,7 @@ computeConfluences l edges reflexive = reifyNat (fromIntegral maxNode + 1) $ \(P
let
xs :: [(Int, Int, Double)]
xs =
map (\(i, j) -> (i, j, 1.0)) edges ++
concatMap (\(i, j) -> [(i, j, 1.0), (j, i, 1.0)]) edges ++
(if reflexive
then [ (i, i, 1.0) | i <- [0..maxNode] ]
else []
......
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