Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-graph
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-graph
Commits
f10c3639
Commit
f10c3639
authored
Oct 14, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Types] ClusterNode
parent
3804ecd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
ProxemyOptim.hs
src/Graph/BAC/ProxemyOptim.hs
+0
-5
Types.hs
src/Graph/Types.hs
+9
-0
No files found.
src/Graph/BAC/ProxemyOptim.hs
View file @
f10c3639
...
@@ -68,11 +68,6 @@ import qualified Data.Map.Strict as Map
...
@@ -68,11 +68,6 @@ import qualified Data.Map.Strict as Map
----------------------------------------------------------------
----------------------------------------------------------------
data
ClusterNode
=
ClusterNode
{
cl_node_id
::
Int
,
cl_community_id
::
Int
}
deriving
Show
defaultClustering
::
Map
(
Int
,
Int
)
Double
->
[
ClusterNode
]
defaultClustering
::
Map
(
Int
,
Int
)
Double
->
[
ClusterNode
]
defaultClustering
adjmap
=
withG
g
$
\
fg
->
defaultClustering
adjmap
=
withG
g
$
\
fg
->
case
clusteringOptim
len
fg
beta
gc
of
case
clusteringOptim
len
fg
beta
gc
of
...
...
src/Graph/Types.hs
View file @
f10c3639
...
@@ -21,6 +21,7 @@ import Data.IntMap (IntMap)
...
@@ -21,6 +21,7 @@ import Data.IntMap (IntMap)
import
qualified
Data.Matrix.Sparse.Static
as
Sparse
import
qualified
Data.Matrix.Sparse.Static
as
Sparse
import
qualified
Data.Vector.Unboxed
as
VU
import
qualified
Data.Vector.Unboxed
as
VU
import
qualified
Numeric.LinearAlgebra.Static
as
Dense
import
qualified
Numeric.LinearAlgebra.Static
as
Dense
import
Protolude
hiding
(
sum
,
natVal
)
-- | Main Types use in this libray
-- | Main Types use in this libray
...
@@ -32,3 +33,11 @@ type Graph a b = DGIP.Gr a b
...
@@ -32,3 +33,11 @@ type Graph a b = DGIP.Gr a b
-- | Type for Matrix computation optimizations (with Eigen)
-- | Type for Matrix computation optimizations (with Eigen)
type
MatrixD
n
=
Dense
.
L
n
n
type
MatrixD
n
=
Dense
.
L
n
n
type
MatrixS
n
=
Sparse
.
Matrix
n
n
Double
type
MatrixS
n
=
Sparse
.
Matrix
n
n
Double
data
ClusterNode
=
ClusterNode
{
cl_node_id
::
Int
,
cl_community_id
::
Int
}
deriving
Show
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