Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clustering-louvain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
clustering-louvain
Commits
e5814cbf
Commit
e5814cbf
authored
Dec 19, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] bug hierarchy params
parent
b29040ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
CplusPlus.hs
src/Data/Graph/Clustering/Louvain/CplusPlus.hs
+3
-2
No files found.
src/Data/Graph/Clustering/Louvain/CplusPlus.hs
View file @
e5814cbf
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment