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
51c26d2a
Commit
51c26d2a
authored
Mar 24, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Error ms] + clean
parent
da57dc97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ILouvain.hs
src/Data/Graph/Clustering/ILouvain.hs
+3
-4
No files found.
src/Data/Graph/Clustering/ILouvain.hs
View file @
51c26d2a
...
@@ -81,8 +81,6 @@ mv :: HyperGraph a a
...
@@ -81,8 +81,6 @@ mv :: HyperGraph a a
->
Node
->
Node
->
Node
->
Node
->
HyperGraph
a
a
->
HyperGraph
a
a
mv
g
n1
n2
=
(
mvContext
c1
c2
)
&
g2
mv
g
n1
n2
=
(
mvContext
c1
c2
)
&
g2
-- delNode n1 g
-- buildGr $ catMaybes [c1, c2]
where
where
(
c1
,
g1
)
=
match
n1
g
(
c1
,
g1
)
=
match
n1
g
(
c2
,
g2
)
=
match
n2
g1
(
c2
,
g2
)
=
match
n2
g1
...
@@ -92,8 +90,9 @@ mvContext :: Maybe (HyperContext a b)
...
@@ -92,8 +90,9 @@ mvContext :: Maybe (HyperContext a b)
->
HyperContext
a
b
->
HyperContext
a
b
mvContext
(
Just
(
a1
,
n
,
l
,
a2
))
mvContext
(
Just
(
a1
,
n
,
l
,
a2
))
(
Just
(
a1'
,
n'
,
l'
,
a2'
))
=
undefined
-- (a1,n,l&l',a2)
(
Just
(
a1'
,
n'
,
l'
,
a2'
))
=
undefined
-- (a1,n,l&l',a2)
mvContext
_
_
=
panic
"Node does not exist"
mvContext
_
(
Just
_
)
=
panic
"First Node does not exist"
mvContext
(
Just
_
)
_
=
panic
"Snd Node does not exist"
mvContext
_
_
=
panic
"Both nodes do not exist"
------------------------------------------------------------------------
------------------------------------------------------------------------
-- | Recursive Node of Graph
-- | Recursive Node of Graph
...
...
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