Commit 565c34d4 authored by Alp Mestanogullari's avatar Alp Mestanogullari

forgot a file

parent 0cbd5099
Pipeline #2916 failed with stage
in 53 minutes and 8 seconds
module Gargantext.Core.Viz.Graph.Tools.Infomap where
import Data.Map (Map)
import Graph.Types
import Prelude
import qualified Data.Graph.Infomap as I
import qualified Data.Graph.Infomap.Internal as I
infomap :: String -> Map (Int, Int) Double -> IO [ClusterNode]
infomap infomapCfg gr = map mkClustNode <$> I.infomap infomapCfg gr
where mkClustNode (I.CNode nid cid) =
ClusterNode (fromIntegral nid) (fromIntegral cid)
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