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
4a63c422
Commit
4a63c422
authored
Mar 29, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ILouvain] with loop number
parent
a7ca326b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ILouvain.hs
src/Data/Graph/Clustering/ILouvain.hs
+4
-6
No files found.
src/Data/Graph/Clustering/ILouvain.hs
View file @
4a63c422
...
...
@@ -34,11 +34,9 @@ toNodes g = map (hnodes g) (nodes g)
iLouvain
::
(
Eq
a
,
Show
a
)
=>
Int
->
HyperGraph
a
a
->
HyperGraph
a
a
iLouvain
0
g
=
g
iLouvain
1
g
=
(
iLouvain'
g
g
)
iLouvain
2
g
=
iLouvain'
g
(
iLouvain
1
g
)
iLouvain
3
g
=
iLouvain'
g
(
iLouvain
2
g
)
iLouvain
4
g
=
iLouvain'
g
(
iLouvain
3
g
)
iLouvain
5
g
=
iLouvain'
g
(
iLouvain
4
g
)
iLouvain
n
g
=
iLouvain'
g
(
iLouvain
(
n
-
1
)
g
)
iLouvain'
::
(
Eq
a
,
Show
a
)
=>
HyperGraph
a
a
...
...
@@ -83,8 +81,8 @@ step :: Show a
->
Node
->
HyperGraph
a
a
step
g
g'
n1
n2
=
-- trace ("step" :: Text) $
--
if s2 > 0 && s2 >= s1
if
s2
>=
s1
if
s2
>
0
&&
s2
>=
s1
--
if s2 >= s1
then
-- trace ("step:mv" :: Text) $
mv
g'
[
n1
]
[
n2
]
else
-- trace ("step:else" :: Text) $
...
...
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