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
048b42f6
Commit
048b42f6
authored
Apr 02, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GraphContexts] mv to test, needs Class fix
parent
c3f26139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
ILouvain.hs
src/Data/Graph/Clustering/ILouvain.hs
+6
-8
No files found.
src/Data/Graph/Clustering/ILouvain.hs
View file @
048b42f6
...
...
@@ -117,11 +117,9 @@ instance IsHyperGraph (GraphContexts a a) where
mv_
g
[
a
,
b
]
[ ]
=
case
match
a
g
of
(
Nothing
,
_
)
->
panic
$
"mv: fst path does not exist: "
<>
show
a
(
Just
(
p
,
n
,
cs
,
s
),
g1
)
->
case
match
b
(
foldr
(
&
)
empty
cs
)
of
(
Just
(
p'
,
n'
,
cs'
,
s'
),
g2
)
->
undefined
(
Just
c
,
g2
)
->
c
&
(
(
p
,
n
,
gsel
(
const
True
)
g2
,
s
)
&
g1
)
(
Nothing
,
_
)
->
panic
"mv: snd path does not exist"
mv_
g
[
a
,
b
]
[
c
]
=
undefined
mv_
g
[
a
,
b
]
[
c
]
=
mv
(
mv
g
[
a
,
b
]
[]
)
[
b
]
[
c
]
mv_
_
[
_
]
[
_
]
=
panic
"path too long"
j
...
...
@@ -532,16 +530,16 @@ merge = ufold (&)
-- Tuple 4 functions
-- since Data.Tuple.Extra has Tuple3 sugar only
fst4
::
(
a
,
b
,
c
,
d
)
->
a
fst4
(
a
,
_
,
_
,
_
)
=
a
fst4
(
a
,
_
,
_
,
_
)
=
a
snd4
::
(
a
,
b
,
c
,
d
)
->
b
snd4
(
_
,
b
,
_
,
_
)
=
b
snd4
(
_
,
b
,
_
,
_
)
=
b
thd4
::
(
a
,
b
,
c
,
d
)
->
c
thd4
(
_
,
_
,
c
,
_
)
=
c
thd4
(
_
,
_
,
c
,
_
)
=
c
fth4
::
(
a
,
b
,
c
,
d
)
->
d
fth4
(
_
,
_
,
_
,
d
)
=
d
fth4
(
_
,
_
,
_
,
d
)
=
d
------------------------------------------------------------------------
------------------------------------------------------------------------
-- TO DELETE
...
...
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