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

[FIX] bug hierarchy params

parent b29040ce
......@@ -34,7 +34,7 @@ data LouvainNode = LouvainNode { l_node_id :: Int
cLouvain :: Text -> Map (Int, Int) Double -> IO [LouvainNode]
cLouvain params ms = do
cLouvain _params ms = do
let inFileD = "/tmp/louvainData.txt"
let inFileW = "/tmp/louvainWeights.weights"
let outBin = "/tmp/louvainGraph.bin"
......@@ -46,7 +46,8 @@ cLouvain params ms = do
let hierarchy = "/usr/share/louvain/hierarchy"
writeInput inFileD ms
let cmdLouvain = louvain <> " " <> inFileD <> " " <> unpack params <> " " <> inFileW <> " " <> outBin <> " " <> outTree
let cmdLouvain = louvain <> " " <> inFileD <> " " <> inFileW <> " " <> outBin <> " " <> outTree
-- let cmdLouvain = louvain <> " " <> inFileD <> " " <> unpack params <> " " <> inFileW <> " " <> outBin <> " " <> outTree
let cmdHierarchy = hierarchy <> " " <> outTree <> " -l 1 > " <> outRes
--pure cmdLouvain
shell (T.pack cmdLouvain)
......
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