Commit df34c362 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[FLouvain] louvainSecondStep

parent 504d3cce
......@@ -70,6 +70,11 @@ louvainFirstStepIterate n gr = fixPt n iterator cond initCGr
iterator cgr = iteration gr cgr
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.
......
......@@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
buildInputs = [
python3
python3Packages.ipython
python3Packages.networkx
python3Packages.numpy
python3Packages.pandas
python3Packages.sklearn-deap
......
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