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
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
cab54dbc
Commit
cab54dbc
authored
Nov 08, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Bridgeness with more links
parent
3853ea1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Bridgeness.hs
src/Gargantext/Core/Viz/Graph/Bridgeness.hs
+3
-3
No files found.
src/Gargantext/Core/Viz/Graph/Bridgeness.hs
View file @
cab54dbc
...
...
@@ -109,10 +109,10 @@ filterComs _b m = Map.filter (\n -> length n > 0) $ mapWithKey filter' m
filter'
(
c1
,
c2
)
a
|
c1
==
c2
=
a
-- TODO use n here
|
otherwise
=
take
1
$
List
.
sortOn
(
Down
.
snd
)
a
|
otherwise
=
take
n
$
List
.
sortOn
(
Down
.
snd
)
a
where
_
n
::
Int
_
n
=
round
$
100
*
a'
/
t
n
::
Int
n
=
round
$
100
*
a'
/
t
a'
=
fromIntegral
$
length
a
t
::
Double
t
=
fromIntegral
$
length
$
List
.
concat
$
elems
m
...
...
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