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
1c636112
Commit
1c636112
authored
Aug 27, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] hierarchy (need to fix the binaries).
parent
1eb4f421
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
67 deletions
+40
-67
clustering-louvain.cabal
clustering-louvain.cabal
+2
-37
package.yaml
package.yaml
+26
-26
CplusPlus.hs
src/Data/Graph/Clustering/Louvain/CplusPlus.hs
+12
-4
No files found.
clustering-louvain.cabal
View file @
1c636112
-- This file has been generated from package.yaml by hpack version 0.2
0.0
.
-- This file has been generated from package.yaml by hpack version 0.2
8.2
.
--
-- see: https://github.com/sol/hpack
--
-- hash:
716223af4ecf0d8fb10f620eda2763c4dd15bb5a65fb15ca2bf2d416e052a9a4
-- hash:
c6cbb5a936351b947ef7587a076b5b97dc259c91048519e5fc0abdfae9f0e4b8
name: clustering-louvain
version: 0.1.0.0
...
...
@@ -38,38 +38,3 @@ library
other-modules:
Paths_clustering_louvain
default-language: Haskell2010
test-suite louvain-doctest
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs:
src-doctest
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N -Wmissing-signatures
build-depends:
Glob
, QuickCheck
, base
, containers
, doctest
, extra
, louvain
, text
other-modules:
Paths_clustering_louvain
default-language: Haskell2010
test-suite louvain-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs:
src-test
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends:
base
, containers
, extra
, louvain
, text
other-modules:
Paths_clustering_louvain
default-language: Haskell2010
package.yaml
View file @
1c636112
...
...
@@ -34,29 +34,29 @@ library:
-
hxt
-
turtle
-
foldl
tests
:
louvain-test
:
main
:
Spec.hs
source-dirs
:
src-test
ghc-options
:
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
dependencies
:
-
base
-
louvain
louvain-doctest
:
main
:
Main.hs
source-dirs
:
src-doctest
ghc-options
:
-
-Werror
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
-
-Wmissing-signatures
dependencies
:
-
doctest
-
Glob
-
QuickCheck
-
base
-
louvain
#
tests:
#
louvain-test:
#
main: Spec.hs
#
source-dirs: src-test
#
ghc-options:
#
- -threaded
#
- -rtsopts
#
- -with-rtsopts=-N
#
dependencies:
#
- base
#
- louvain
#
louvain-doctest:
#
main: Main.hs
#
source-dirs: src-doctest
#
ghc-options:
#
- -Werror
#
- -threaded
#
- -rtsopts
#
- -with-rtsopts=-N
#
- -Wmissing-signatures
#
dependencies:
#
- doctest
#
- Glob
#
- QuickCheck
#
- base
#
- louvain
src/Data/Graph/Clustering/Louvain/CplusPlus.hs
View file @
1c636112
...
...
@@ -40,15 +40,23 @@ cLouvain ms = do
let
inFileD
=
"/tmp/louvainData.txt"
let
inFileW
=
"/tmp/louvainWeights.weights"
let
outBin
=
"/tmp/louvainGraph.bin"
let
outRes
=
"/tmp/louvainGraph.tree"
let
louvain
=
"/usr/share/louvain/louvain"
let
outTree
=
"/tmp/louvainGraph.tree"
let
outRes
=
"/tmp/louvainGraph.res"
let
louvain
=
"/usr/share/louvain/louvain"
let
hierarchy
=
"/usr/share/louvain/hierarchy"
writeInput
inFileD
ms
let
cmdLouvain
=
louvain
<>
" "
<>
inFileD
<>
" "
<>
inFileW
<>
" "
<>
outBin
<>
" "
<>
outRes
let
cmdLouvain
=
louvain
<>
" "
<>
inFileD
<>
" "
<>
inFileW
<>
" "
<>
outBin
<>
" "
<>
outTree
let
cmdHierarchy
=
hierarchy
<>
" "
<>
outTree
<>
" -l 1 > "
<>
outRes
--pure cmdLouvain
shell
(
T
.
pack
cmdLouvain
)
shell
(
T
.
pack
cmdHierarchy
)
myResult
<-
readOutput
outRes
let
clean
=
"rm"
<>
" "
<>
L
.
intercalate
" "
[
inFileD
,
inFileW
,
outBin
,
outTree
,
outRes
]
pure
myResult
...
...
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