Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
haskell-gargantext
Commits
9743a073
Commit
9743a073
authored
Sep 08, 2022
by
Alp Mestanogullari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seemingly fixed 'computeConfluences'
parent
e01e7a2f
Pipeline
#3151
passed with stage
in 91 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Tools.hs
src/Gargantext/Core/Viz/Graph/Tools.hs
+4
-1
stack.yaml
stack.yaml
+1
-1
No files found.
src/Gargantext/Core/Viz/Graph/Tools.hs
View file @
9743a073
...
...
@@ -132,7 +132,10 @@ cooc2graphWith' doPartitions distance threshold strength myCooc = do
(
as
,
bs
)
=
List
.
unzip
$
Map
.
keys
distanceMap
n'
=
Set
.
size
$
Set
.
fromList
$
as
<>
bs
bridgeness'
=
bridgeness
(
fromIntegral
nodesApprox
)
partitions
distanceMap
confluence'
=
BAC
.
computeConfluences
3
(
Map
.
keys
bridgeness'
)
True
-- indices of bridgeness seem to start at 1, while computeConfluences
-- expects 0-based indexing.
ks
=
map
(
\
(
a
,
b
)
->
(
a
-
1
,
b
-
1
))
(
Map
.
keys
bridgeness'
)
confluence'
=
Map
.
mapKeys
(
\
(
a
,
b
)
->
(
a
+
1
,
b
+
1
))
$
BAC
.
computeConfluences
3
ks
True
-- confluence (Map.keys bridgeness') 3 True False
seq
bridgeness'
$
printDebug
"bridgeness OK"
()
seq
confluence'
$
printDebug
"confluence OK"
()
...
...
stack.yaml
View file @
9743a073
...
...
@@ -35,7 +35,7 @@ extra-deps:
-
git
:
https://gitlab.iscpif.fr/gargantext/haskell-gargantext-prelude.git
commit
:
08096a4913572cf22762fa77613340207ec6d9fd
-
git
:
https://gitlab.iscpif.fr/gargantext/gargantext-graph.git
commit
:
f41ee8b53c3264e5aa5adc06b2e5b293d2a8c474
commit
:
642b9ec7ffa59a5db7b2ec7b24436e07309dc097
# Data Mining Libs
-
git
:
https://github.com/delanoe/data-time-segment.git
commit
:
10a416b9f6c443866b36479c3441ebb3bcdeb7ef
...
...
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