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
0d9cc033
Commit
0d9cc033
authored
Oct 02, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
egoquery and multiplequery unified
parent
2a82051f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
138016 additions
and
242 deletions
+138016
-242
140907Syneco.gexf
data/140907Syneco.gexf
+137826
-0
enviroment.js
tinawebJS/js/enviroment.js
+1
-8
main.js
tinawebJS/js/main.js
+170
-215
methods.js
tinawebJS/js/methods.js
+6
-8
sigma.forceatlas2.js
tinawebJS/js/sigma.forceatlas2.js
+13
-11
No files found.
data/140907Syneco.gexf
0 → 100755
View file @
0d9cc033
This diff is collapsed.
Click to expand it.
tinawebJS/js/enviroment.js
View file @
0d9cc033
...
...
@@ -162,8 +162,6 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
pr
(
"
\
t
\
t
\
t
\
t
\
t
\
t[[ algorithm not applied "
+
sliderDivID
+
" ]]"
)
return
;
}
pr
(
"heeere in edge weight filter"
)
// sliderDivID = "#sliderAEdgeWeight"
// type = "nodes1"
// type_attrb = "label"
...
...
@@ -178,13 +176,11 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
// AlgorithmForSliders ( partialGraph._core.graph.edges , "label" , "nodes2" , "weight")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "Document" , "size")
// AlgorithmForSliders ( partialGraph._core.graph.nodes , "type" , "NGram" , "size")
pr
(
partialGraph
.
_core
.
graph
.
edges
)
var
filterparams
=
AlgorithmForSliders
(
partialGraph
.
_core
.
graph
.
edges
,
type_attrb
,
type
,
criteria
)
pr
(
"after algorithm for sliders"
)
var
steps
=
filterparams
[
"steps"
]
var
finalarray
=
filterparams
[
"finalarray"
]
pr
(
finalarray
)
//finished
$
(
sliderDivID
).
freshslider
({
range
:
true
,
...
...
@@ -320,13 +316,10 @@ function NodeWeightFilter(sliderDivID , type_attrb , type , criteria) {
function
AlgorithmForSliders
(
elements
,
type_attrb
,
type
,
criteria
)
{
// // ( 1 )
// // get visible sigma nodes|edges
pr
(
elements
)
elems
=
elements
.
filter
(
function
(
e
)
{
return
e
[
type_attrb
]
==
type
;
});
pr
(
"nodes|edges length: "
+
elems
.
length
)
pr
(
elems
)
// // ( 2 )
// // extract [ "edgeID" : edgeWEIGHT ] | [ "nodeID" : nodeSIZE ]
// // and save this into edges_weight | nodes_size
...
...
tinawebJS/js/main.js
View file @
0d9cc033
This diff is collapsed.
Click to expand it.
tinawebJS/js/methods.js
View file @
0d9cc033
...
...
@@ -239,7 +239,7 @@ function RefreshState(newNOW){
}
//this should be available!!
//
EdgeWeightFilter("#sliderAEdgeWeight", "label" , "nodes1", "weight");
EdgeWeightFilter
(
"#sliderAEdgeWeight"
,
"label"
,
"nodes1"
,
"weight"
);
$
(
"#semLoader"
).
hide
();
$
(
"#colorGraph"
).
show
();
...
...
@@ -264,12 +264,15 @@ function RefreshState(newNOW){
if
(
semanticConverged
)
$
(
"#semLoader"
).
hide
();
else
$
(
"#semLoader"
).
show
();
//this should be available!!
//
EdgeWeightFilter("#sliderBEdgeWeight", "label" , "nodes2", "weight");
//
NodeWeightFilter ( "#sliderBNodeWeight" , "type" , "NGram" , "size")
EdgeWeightFilter
(
"#sliderBEdgeWeight"
,
"label"
,
"nodes2"
,
"weight"
);
NodeWeightFilter
(
"#sliderBNodeWeight"
,
"type"
,
"NGram"
,
"size"
)
$
(
"#colorGraph"
).
hide
();
}
if
(
NOW
==
"AaBb"
){
LevelButtonDisable
(
true
);
EdgeWeightFilter
(
"#sliderAEdgeWeight"
,
"label"
,
"nodes1"
,
"weight"
);
EdgeWeightFilter
(
"#sliderBEdgeWeight"
,
"label"
,
"nodes2"
,
"weight"
);
NodeWeightFilter
(
"#sliderBNodeWeight"
,
"type"
,
"NGram"
,
"size"
)
$
(
"#colorGraph"
).
hide
();
}
...
...
@@ -1189,9 +1192,6 @@ function graphResetColor(){
function
createEdgesForExistingNodes
(
typeOfNodes
)
{
pr
(
"create Edges for existing Nodes"
)
pr
(
partialGraph
.
_core
.
graph
.
nodes
)
if
(
typeOfNodes
==
"social"
)
typeOfNodes
=
"Scholars"
if
(
typeOfNodes
==
"semantic"
)
typeOfNodes
=
"Keywords"
if
(
typeOfNodes
==
"sociosemantic"
)
typeOfNodes
=
"Bipartite"
...
...
@@ -1298,8 +1298,6 @@ function createEdgesForExistingNodes (typeOfNodes) {
}
}
}
pr
(
"AT THE END OF createEdgesForExistingNodes"
)
pr
(
partialGraph
.
_core
.
graph
.
edges
)
}
function
hideEverything
(){
...
...
tinawebJS/js/sigma.forceatlas2.js
View file @
0d9cc033
...
...
@@ -38,8 +38,8 @@ sigma.forceatlas2.ForceAtlas2 = function(graph , V , E) {
// Runtime (the ForceAtlas2 itself)
this
.
init
=
function
()
{
console
.
log
(
"#Nodes: "
+
V
)
console
.
log
(
"#Edges: "
+
E
)
//
console.log("#Nodes: "+V)
//
console.log("#Edges: "+E)
self
.
state
=
{
step
:
0
,
index
:
0
};
...
...
@@ -886,9 +886,11 @@ sigma.forceatlas2.Region.prototype.updateMassAndGeometry = function() {
var
massSumX
=
0
;
var
massSumY
=
0
;
this
.
nodes
.
forEach
(
function
(
n
)
{
mass
+=
n
.
fa2
.
mass
;
massSumX
+=
n
.
x
*
n
.
fa2
.
mass
;
massSumY
+=
n
.
y
*
n
.
fa2
.
mass
;
if
(
n
.
fa2
)
{
mass
+=
n
.
fa2
.
mass
;
massSumX
+=
n
.
x
*
n
.
fa2
.
mass
;
massSumY
+=
n
.
y
*
n
.
fa2
.
mass
;
}
});
var
massCenterX
=
massSumX
/
mass
;
massCenterY
=
massSumY
/
mass
;
...
...
@@ -1082,7 +1084,7 @@ sigma.publicPrototype.stopForceAtlas2 = function() {
var
ybuffer
=
miny
;
for
(
var
i
in
this
.
_core
.
graph
.
nodesIndex
)
{
if
(
swMacro
)
{
if
(
swMacro
&&
this
.
_core
.
graph
.
nodesIndex
[
i
].
degree
>
0
)
{
Nodes
[
i
].
x
=
this
.
_core
.
graph
.
nodesIndex
[
i
].
x
;
Nodes
[
i
].
y
=
this
.
_core
.
graph
.
nodesIndex
[
i
].
y
;
}
...
...
@@ -1106,11 +1108,11 @@ sigma.publicPrototype.stopForceAtlas2 = function() {
}
// -- / UPDATING THE DEGREE --
pr
(
"minx: "
+
minx
)
pr
(
"maxx: "
+
maxx
)
pr
(
"miny: "
+
miny
)
pr
(
"maxy: "
+
maxy
)
pr
(
""
)
//
pr("minx: "+minx)
//
pr("maxx: "+maxx)
//
pr("miny: "+miny)
//
pr("maxy: "+maxy)
//
pr("")
};
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