Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
8dd49407
Commit
8dd49407
authored
May 30, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Proxemy somes types as doc.
parent
9be98fd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Proxemy.hs
src/Gargantext/Viz/Graph/Proxemy.hs
+5
-2
No files found.
src/Gargantext/Viz/Graph/Proxemy.hs
View file @
8dd49407
...
...
@@ -79,8 +79,12 @@ graphTest= mkGraphUfromEdges [(0,1),(0,2),(0,4),(0,5),(1,0),(1,3),(1,8),(2,0),(2
--{-
--runTest_prox :: [Bool
runTest_prox_is_ok
::
Bool
runTest_prox_is_ok
=
List
.
null
(
List
.
filter
(
not
.
List
.
null
)
$
map
runTest_prox'
[
0
..
3
])
runTest_prox'
::
Node
->
[((
Node
,
(
Node
,
Node
)),
Bool
)]
runTest_prox'
l
=
List
.
filter
(
\
t
->
snd
t
==
False
)
[
((
l
,(
x
,
y
)),
abs
((
look
(
y
,
x
)
test
)
-
(
look
(
y
,
x
)
temoin
))
<
0.0001
)
|
y
<-
nodes
graphTest
...
...
@@ -90,12 +94,11 @@ runTest_prox' l = List.filter (\t -> snd t == False)
look
::
(
Node
,
Node
)
->
Map
Node
(
Map
Node
Double
)
->
Double
look
(
x
,
y
)
m
=
look'
x
$
look'
y
m
where
look'
x
m
=
maybe
(
panic
"nokey"
)
identity
$
Map
.
lookup
x
m
look'
x
'
m'
=
maybe
(
panic
"nokey"
)
identity
$
Map
.
lookup
x'
m'
test
=
Map
.
map
Map
.
fromList
$
Map
.
fromList
$
test_proxs_y
l
temoin
=
Map
.
map
Map
.
fromList
$
Map
.
fromList
$
test_prox
l
test_proxs_y
::
Length
->
[(
Node
,
[(
Node
,
Double
)])]
test_proxs_y
l
=
map
(
\
n
->
test_proxs_x
l
n
)
(
nodes
graphTest
)
...
...
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