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
147
Issues
147
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
856e569f
Commit
856e569f
authored
Jun 21, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
a8e38d27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
TextFlow.hs
src/Gargantext/TextFlow.hs
+3
-4
Graph.hs
src/Gargantext/Viz/Graph.hs
+1
-0
No files found.
src/Gargantext/TextFlow.hs
View file @
856e569f
...
...
@@ -56,6 +56,9 @@ import Data.Graph.Clustering.Louvain.CplusPlus (cLouvain, LouvainNode(..))
-}
printDebug
msg
x
=
putStrLn
$
msg
<>
" "
<>
show
x
--printDebug _ _ = pure ()
data
TextFlow
=
CSV
|
FullText
-- workflow :: Lang (EN|FR) -> FilePath -> Graph
...
...
@@ -145,7 +148,3 @@ data2graph labels coocs distance partitions = Graph nodes edges
|
(
i
,
((
s
,
t
),
w
))
<-
zip
[
0
..
]
(
M
.
toList
distance
)
]
-----------------------------------------------------------
printDebug
msg
x
=
putStrLn
$
msg
<>
" "
<>
show
x
--printDebug _ _ = pure ()
src/Gargantext/Viz/Graph.hs
View file @
856e569f
...
...
@@ -111,6 +111,7 @@ graphOld2graph (GraphOld links nodes) = Graph (map nodeOld2node nodes) (zipWith
graphOld2graphWithFiles
::
FilePath
->
FilePath
->
IO
()
graphOld2graphWithFiles
g1
g2
=
do
-- GraphOld <- IO Fichier
graph
<-
DBL
.
readFile
g1
let
newGraph
=
case
DA
.
decode
graph
::
Maybe
GraphOld
of
Nothing
->
panic
(
T
.
pack
"no graph"
)
...
...
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