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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
706dd25d
Commit
706dd25d
authored
Oct 23, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] Proxemy vars
parent
1512855c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Proxemy.hs
src/Gargantext/Core/Viz/Graph/Proxemy.hs
+9
-9
No files found.
src/Gargantext/Core/Viz/Graph/Proxemy.hs
View file @
706dd25d
...
...
@@ -28,17 +28,17 @@ import Gargantext.Core.Viz.Graph.FGL
type
Length
=
Int
type
FalseReflexive
=
Bool
type
NeighborsFilter
=
Graph_Undirected
->
Node
->
[
Node
]
type
W
e
=
Bool
type
RmEdg
e
=
Bool
confluence
::
[(
Node
,
Node
)]
->
Length
->
FalseReflexive
->
W
e
->
Map
(
Node
,
Node
)
Double
confluence
ns
l
fr
we
=
similarity_conf
(
mkGraphUfromEdges
ns
)
l
fr
we
confluence
::
[(
Node
,
Node
)]
->
Length
->
FalseReflexive
->
RmEdg
e
->
Map
(
Node
,
Node
)
Double
confluence
ns
=
similarity_conf
(
mkGraphUfromEdges
ns
)
similarity_conf
::
Graph_Undirected
->
Length
->
FalseReflexive
->
W
e
->
Map
(
Node
,
Node
)
Double
similarity_conf
g
l
fr
we
=
Map
.
fromList
[
((
x
,
y
),
similarity_conf_x_y
g
(
x
,
y
)
l
fr
we
)
similarity_conf
::
Graph_Undirected
->
Length
->
FalseReflexive
->
RmEdg
e
->
Map
(
Node
,
Node
)
Double
similarity_conf
g
l
fr
rm
=
Map
.
fromList
[
((
x
,
y
),
similarity_conf_x_y
g
(
x
,
y
)
l
fr
rm
)
|
x
<-
nodes
g
,
y
<-
nodes
g
,
x
<
y
]
similarity_conf_x_y
::
Graph_Undirected
->
(
Node
,
Node
)
->
Length
->
FalseReflexive
->
W
e
->
Double
similarity_conf_x_y
g
(
x
,
y
)
l
r
w
e
=
similarity
similarity_conf_x_y
::
Graph_Undirected
->
(
Node
,
Node
)
->
Length
->
FalseReflexive
->
RmEdg
e
->
Double
similarity_conf_x_y
g
(
x
,
y
)
l
r
rm_
e
=
similarity
where
similarity
::
Double
similarity
|
denominator
==
0
=
0
...
...
@@ -52,11 +52,11 @@ similarity_conf_x_y g (x,y) l r we = similarity
xline
::
Map
Node
Double
xline
=
prox_markov
g
[
x
]
l
r
filterNeighbors'
where
filterNeighbors'
|
w
e
==
True
=
filterNeighbors
filterNeighbors'
|
rm_
e
==
True
=
filterNeighbors
|
otherwise
=
rm_edge_neighbors
(
x
,
y
)
pair_is_edge
::
Bool
pair_is_edge
|
w
e
==
True
=
False
pair_is_edge
|
rm_
e
==
True
=
False
|
otherwise
=
List
.
elem
y
(
filterNeighbors
g
x
)
lim_SC
::
Double
...
...
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