Tools to clustering Graphs with louvain clustering algorithm.
Tools to clustering Graphs with louvain clustering algorithm (not optimized version).
References:
References:
* Blondel, Vincent D; Guillaume, Jean-Loup; Lambiotte, Renaud; Lefebvre, Etienne (9 October 2008). "Fast unfolding of communities in large networks". Journal of Statistical Mechanics: Theory and Experiment. 2008 (10): P10008. arXiv:0803.0476 Freely accessible. doi:10.1088/1742-5468/2008/10/P10008.
* Blondel, Vincent D; Guillaume, Jean-Loup; Lambiotte, Renaud; Lefebvre, Etienne (9 October 2008). "Fast unfolding of communities in large networks". Journal of Statistical Mechanics: Theory and Experiment. 2008 (10): P10008. arXiv:0803.0476 Freely accessible. doi:10.1088/1742-5468/2008/10/P10008.
...
@@ -64,7 +64,7 @@ dendogram :: (Eq b, DynGraph gr) => gr a b -> Int -> Reverse -> [[Node]]
...
@@ -64,7 +64,7 @@ dendogram :: (Eq b, DynGraph gr) => gr a b -> Int -> Reverse -> [[Node]]
dendogramgrnr=stepscomgrn(startgrr)
dendogramgrnr=stepscomgrn(startgrr)
start::DynGraphgr=>grab->Reverse->[[Node]]
start::DynGraphgr=>grab->Reverse->[[Node]]
startgrr=order'$Prelude.map(\x->[]++[x])(nodesgr)
startgrr=order'$Prelude.map(\x->[x])(nodesgr)
where
where
order'=caserof
order'=caserof
True->reverse
True->reverse
...
@@ -81,7 +81,8 @@ stepscom gr n ns = foldl' (\xs _ -> stepcom gr' (smallCom xs) xs) ns [1..n]
...
@@ -81,7 +81,8 @@ stepscom gr n ns = foldl' (\xs _ -> stepcom gr' (smallCom xs) xs) ns [1..n]