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
b98ddbfc
Commit
b98ddbfc
authored
Sep 09, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] commenting to fix graph issue
parent
8c5c38a6
Pipeline
#3161
passed with stage
in 91 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Tools.hs
src/Gargantext/Core/Viz/Graph/Tools.hs
+2
-2
No files found.
src/Gargantext/Core/Viz/Graph/Tools.hs
View file @
b98ddbfc
...
...
@@ -134,8 +134,8 @@ cooc2graphWith' doPartitions distance threshold strength myCooc = do
bridgeness'
=
bridgeness
(
fromIntegral
nodesApprox
)
partitions
distanceMap
-- 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
--
ks = map (\(a, b) -> (a-1, b-1)) (Map.keys bridgeness')
confluence'
=
Map
.
empty
-- 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"
()
...
...
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