Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
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
david Chavalarias
clinicaltrials
Commits
180e3f09
Commit
180e3f09
authored
May 23, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP minor: reconnected monopartite louvain and fixed zoom handler typo
parent
69e7c039
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
extras_explorerjs.js
extras_explorerjs.js
+5
-0
Tinaweb.js
tinawebJS/Tinaweb.js
+1
-1
sigmaUtils.js
tinawebJS/sigmaUtils.js
+14
-4
No files found.
extras_explorerjs.js
View file @
180e3f09
...
...
@@ -61,7 +61,12 @@ function changeGraphAppearanceByFacets( manualflag ) {
}
// POSS add cumulated degree via TW.partialGraph.graph.degree(nid)
}
// we also add clust_louvain in all cases
color_menu_info
+=
`<li><a href="#" onclick='colorsBy("clust_louvain")'>By Louvain clustering (
${
TW
.
partialGraph
.
graph
.
nNodes
()}
)</a></li>`
$
(
"#colorgraph-menu"
).
html
(
color_menu_info
)
}
...
...
tinawebJS/Tinaweb.js
View file @
180e3f09
...
...
@@ -994,7 +994,7 @@ TinaWebJS = function ( sigmacanvas ) {
step
:
.
2
,
value
:
1
,
slide
:
function
(
event
,
ui
)
{
partialGraph
.
camera
.
goTo
({
TW
.
partialGraph
.
camera
.
goTo
({
// POSS: make a transform to increase detail around x = 1
ratio
:
1
/
ui
.
value
});
...
...
tinawebJS/sigmaUtils.js
View file @
180e3f09
...
...
@@ -1203,10 +1203,20 @@ function colorsBy(daclass) {
for
(
var
j
in
TW
.
nodeIds
)
{
var
the_node
=
TW
.
Nodes
[
TW
.
nodeIds
[
j
]
]
var
attval
=
(
isUndef
(
the_node
.
attributes
)
||
isUndef
(
the_node
.
attributes
[
daclass
])
)?
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
])[
daclass
]:
the_node
.
attributes
[
daclass
];
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
color
=
randomColorList
[
attval
]
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
customAttrs
.
alt_color
=
randomColorList
[
attval
]
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
customAttrs
.
altgrey_color
=
false
// ££TODO put louvain in graph.nodes() like other attrs ??
// then possible to use TW.partialGraph.graph.nodes(TW.nodeIds[j])
if
(
j
<
15
)
console
.
log
(
`
${
TW
.
nodeIds
[
j
]}
: hidden?
${
the_node
.
hidden
}
the_node.attributes[daclass] =
${
the_node
.
attributes
[
daclass
]}
`
)
// final val=${attval}
if
(
!
the_node
.
hidden
)
{
console
.
log
(
the_node
)
var
attval
=
(
!
isUndef
(
the_node
.
attributes
)
&&
!
isUndef
(
the_node
.
attributes
[
daclass
])
)?
the_node
.
attributes
[
daclass
]
:
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
])[
daclass
];
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
color
=
randomColorList
[
attval
]
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
customAttrs
.
alt_color
=
randomColorList
[
attval
]
TW
.
partialGraph
.
graph
.
nodes
(
TW
.
nodeIds
[
j
]).
customAttrs
.
altgrey_color
=
false
}
}
// set the global state
TW
.
handpickedcolor
=
true
...
...
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