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
da57dc97
Commit
da57dc97
authored
Mar 24, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HyperGraph] MoveContext specs.
parent
9027ce27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ILouvain.hs
src/Data/Graph/Clustering/ILouvain.hs
+9
-9
No files found.
src/Data/Graph/Clustering/ILouvain.hs
View file @
da57dc97
...
...
@@ -80,20 +80,20 @@ mv' g (x:xs) [] = undefined
mv
::
HyperGraph
a
a
->
Node
->
Node
->
HyperGraph
a
a
mv
g
n1
n2
=
delNode
n1
g
mv
g
n1
n2
=
(
mvContext
c1
c2
)
&
g2
-- delNode n1 g
-- buildGr $ catMaybes [c1, c2]
where
(
c1
,
g1
)
=
match
n1
g
(
c2
,
g2
)
=
match
n2
g1
{-
insertContext :: HyperContext a b
-> HyperContext a b
mvContext
::
Maybe
(
HyperContext
a
b
)
->
Maybe
(
HyperContext
a
b
)
->
HyperContext
a
b
insertContext (a1,n,l,a2) (a1',n',l',a2') = (a1,n,l&l',a2)
mvContext
(
Just
(
a1
,
n
,
l
,
a2
))
(
Just
(
a1'
,
n'
,
l'
,
a2'
))
=
undefined
-- (a1,n,l&l',a2)
mvContext
_
_
=
panic
"Node does not exist"
--}
------------------------------------------------------------------------
-- | 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