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
df34c362
Commit
df34c362
authored
Mar 27, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FLouvain] louvainSecondStep
parent
504d3cce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
FLouvain.hs
src/Data/Graph/Clustering/FLouvain.hs
+5
-0
default.nix
src/Data/Graph/Clustering/python/default.nix
+1
-0
No files found.
src/Data/Graph/Clustering/FLouvain.hs
View file @
df34c362
...
@@ -70,6 +70,11 @@ louvainFirstStepIterate n gr = fixPt n iterator cond initCGr
...
@@ -70,6 +70,11 @@ louvainFirstStepIterate n gr = fixPt n iterator cond initCGr
iterator
cgr
=
iteration
gr
cgr
iterator
cgr
=
iteration
gr
cgr
cond
cgr
=
(
unModularity
$
modularity
gr
cgr
grWeight
)
<
0.1
cond
cgr
=
(
unModularity
$
modularity
gr
cgr
grWeight
)
<
0.1
-- | Second step from the Louvain paper -- given a clustering, create new graph
-- of clusters
louvainSecondStep
::
FGraph
a
b
->
CGr
->
FGraph
a
b
louvainSecondStep
gr
cgr
=
gr
------------------------------------------------------------------------
------------------------------------------------------------------------
-- Our basic graph. Nodes have custom labels. Edges have weight assigned to them.
-- Our basic graph. Nodes have custom labels. Edges have weight assigned to them.
...
...
src/Data/Graph/Clustering/python/default.nix
View file @
df34c362
...
@@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
...
@@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
buildInputs
=
[
buildInputs
=
[
python3
python3
python3Packages
.
ipython
python3Packages
.
ipython
python3Packages
.
networkx
python3Packages
.
numpy
python3Packages
.
numpy
python3Packages
.
pandas
python3Packages
.
pandas
python3Packages
.
sklearn-deap
python3Packages
.
sklearn-deap
...
...
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