Commit 03c8885d authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Fix segfault in igraphCommunityInfomap call

parent 4d8911ea
......@@ -55,7 +55,8 @@ findCommunity gr getNodeW getEdgeW method _ = allocaVector $ \result ->
(_graph gr) ew' nw' _resolution _beta False result nullPtr
return ()
Infomap{..} -> do
_ <- withListMaybe nw $ \nw' -> igraphCommunityInfomap (_graph gr) ew' nw' _iIter result nullPtr
_ <- withListMaybe nw $ \nw' -> alloca $ \codeLenPtr ->
igraphCommunityInfomap (_graph gr) ew' nw' _iIter result codeLenPtr
return ()
fmap ( map (fst . unzip) . groupBy ((==) `on` snd)
......
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