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
12
Merge Requests
12
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
5dbb665d
Commit
5dbb665d
authored
2 years ago
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] add _camera_angle
parent
924aeb1c
Pipeline
#3429
passed with stage
in 91 minutes and 43 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Graph.hs
src/Gargantext/Core/Viz/Graph.hs
+4
-3
API.hs
src/Gargantext/Core/Viz/Graph/API.hs
+2
-3
No files found.
src/Gargantext/Core/Viz/Graph.hs
View file @
5dbb665d
...
...
@@ -105,7 +105,7 @@ instance ToSchema MultiPartite where
declareNamedSchema
=
genericDeclareNamedSchema
(
unPrefixSwagger
"_multipartite_"
)
makeLenses
''
M
ultiPartite
defaultMultipartite
::
MultiPartite
defaultMultipartite
::
MultiPartite
defaultMultipartite
=
MultiPartite
a
a
where
a
=
Partite
HashSet
.
empty
NgramsTerms
...
...
@@ -203,7 +203,8 @@ data GraphV3 = GraphV3 { go_links :: [EdgeV3]
$
(
deriveJSON
(
unPrefix
"go_"
)
''
G
raphV3
)
-----------------------------------------------------------
data
Camera
=
Camera
{
_camera_ratio
::
Double
data
Camera
=
Camera
{
_camera_angle
::
Double
,
_camera_ratio
::
Double
,
_camera_x
::
Double
,
_camera_y
::
Double
}
deriving
(
Show
,
Generic
)
...
...
@@ -222,7 +223,7 @@ $(deriveJSON (unPrefix "_") ''HyperdataGraph)
instance
ToSchema
HyperdataGraph
where
declareNamedSchema
=
genericDeclareNamedSchema
(
unPrefixSwagger
"_"
)
defaultHyperdataGraph
::
HyperdataGraph
defaultHyperdataGraph
::
HyperdataGraph
defaultHyperdataGraph
=
HyperdataGraph
Nothing
Nothing
...
...
This diff is collapsed.
Click to expand it.
src/Gargantext/Core/Viz/Graph/API.hs
View file @
5dbb665d
...
...
@@ -194,7 +194,7 @@ computeGraph corpusId partitionMethod bridgeMethod similarity strength (nt1,nt2)
lIds
<-
selectNodesWithUsername
NodeList
userMaster
-- Getting the Ngrams to compute with and grouping it according to the lists
let
let
groupedContextsByNgrams
nt
corpusId'
(
lists_master
,
lists_user
)
=
do
let
ngs
=
filterListWithRoot
[
MapTerm
]
$
mapTermListRoot
lists_user
nt
repo
...
...
@@ -205,7 +205,7 @@ computeGraph corpusId partitionMethod bridgeMethod similarity strength (nt1,nt2)
(
m1
,
m2
)
<-
do
m1
<-
groupedContextsByNgrams
nt1
corpusId
(
lIds
,
[
lId
])
if
nt1
==
nt2
then
then
pure
(
m1
,
m1
)
else
do
m2
<-
groupedContextsByNgrams
nt2
corpusId
(
lIds
,
[
lId
])
...
...
@@ -369,4 +369,3 @@ getGraphGexf :: FlowCmdM env err m
getGraphGexf
uId
nId
=
do
HyperdataGraphAPI
{
_hyperdataAPIGraph
=
graph
}
<-
getGraph
uId
nId
pure
$
addHeader
"attachment; filename=graph.gexf"
graph
This diff is collapsed.
Click to expand it.
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