GUIDE
- Left-click and drag the background to move the graph
- Left-click and drag the nodes to reorganize
- Left-click a node to view first level connections
- Double left-click a node to navigate to its page
- Double left-click the background to zoom in
- Right-click the background to zoom out
sigma.utils.pkg('sigma.canvas.nodes');
sigma.canvas.nodes.image = (function() {
var _cache = {},
_loading = {},
_callbacks = {};
// Return the renderer itself:
var renderer = function(node, context, settings) {
var args = arguments,
prefix = settings('prefix') || '',
size = node[prefix + 'size'],
color = node.color || settings('defaultNodeColor'),
url = node.url;
if (_cache[url]) {
context.save();
// Draw the clipping disc:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.closePath();
context.clip();
// Draw the image
context.drawImage(
_cache[url],
node[prefix + 'x'] - size,
node[prefix + 'y'] - size,
2 * size,
2 * size
);
// Quit the "clipping mode":
context.restore();
// Draw the border:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.lineWidth = 1;
context.strokeStyle = node.color || settings('defaultNodeColor');
context.stroke();
} else {
sigma.canvas.nodes.image.cache(url);
sigma.canvas.nodes.def.apply(
sigma.canvas.nodes,
args
);
}
};
// Let's add a public method to cache images, to make it possible to
// preload images before the initial rendering:
renderer.cache = function(url, callback) {
if (callback)
_callbacks[url] = callback;
if (_loading[url])
return;
var img = new Image();
img.onload = function() {
_loading[url] = false;
_cache[url] = img;
if (_callbacks[url]) {
_callbacks[url].call(this, img);
delete _callbacks[url];
}
};
_loading[url] = true;
img.src = url;
};
return renderer;
})();
var i,
s,
o,
offset_left = 0.5,
N = 1,
E = 40,
C = 5,
d = 0.5,
cs = [],
g = {
nodes: [],
edges: []
};
if (!sigma.classes.graph.hasMethod('neighbors')){
sigma.classes.graph.addMethod('neighbors', function(nodeId) {
var k,
neighbors = {},
index = this.allNeighborsIndex[nodeId] || {};
for (k in index)
neighbors[k] = this.nodesIndex[k];
return neighbors;
});
}
//adding the central node
g.nodes.push({
id: 4246,
label: 'Sandrine Etienne-Manneville',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_sandrine_etienne-manneville-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=14
// adding node
var x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
g.nodes.push({
id: 201864,
label: 'EVENT: Pasteur International Cancer Conference 2023',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/pasteur-international-cancer-conference-2023/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246201864,
size: 0.5,
source: 4246,
target: 201864,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 142960,
label: 'Sylvie Gratepanche',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/fr-sylvie-gratepanche/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 201864142960,
size: 0.5,
source: 201864,
target: 142960 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4176,
label: 'Ludovic Deriano',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/07/research.pasteur.fr_sans-titre-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ludovic-deriano/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018644176,
size: 0.5,
source: 201864,
target: 4176 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2018644246,
size: 0.5,
source: 201864,
target: 4246 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 3982,
label: 'Philippe Bousso',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photopb-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/philippe-bousso/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018643982,
size: 0.5,
source: 201864,
target: 3982 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4125,
label: 'Anne Dejean',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/03/research.pasteur.fr_anne-dejean-4-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/anne-dejean/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018644125,
size: 0.5,
source: 201864,
target: 4125 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 78773,
label: 'Romain Levayer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_dsc_0008-001-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/romain-levayer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 20186478773,
size: 0.5,
source: 201864,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 1 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 1 * Math.PI / N) * 10;
g.nodes.push({
id: 186172,
label: 'NEWS: New publication – PTEN inhibits AMPK to control collective migration',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/new-publication-pten-inhibits-ampk-to-control-collective-migration/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246186172,
size: 0.5,
source: 4246,
target: 186172,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 113031,
label: 'Florent Peglion',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=113031',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 186172113031,
size: 0.5,
source: 186172,
target: 113031 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4675,
label: 'Isabelle Perfettini',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-isabelle-perfettini-i-perfettini--150x150.png',
page_url: 'https://research.pasteur.fr/en/member/isabelle-perfettini/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1861724675,
size: 0.5,
source: 186172,
target: 4675 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4251,
label: 'Flora Llense',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/flora-llense/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1861724251,
size: 0.5,
source: 186172,
target: 4251 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1861724246,
size: 0.5,
source: 186172,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 2 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 2 * Math.PI / N) * 10;
g.nodes.push({
id: 176450,
label: 'NEWS: New publication – The role of substrate rigidity in tumor migration',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/new-publication-the-role-of-substrate-rigidity-in-tumor-migration/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246176450,
size: 0.5,
source: 4246,
target: 176450,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 8332,
label: 'Vanessa Roca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-vanessa-roca-img-0933-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/vanessa-roca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1764508332,
size: 0.5,
source: 176450,
target: 8332 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4245,
label: 'Batiste Boeda',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/batiste-boeda/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1764504245,
size: 0.5,
source: 176450,
target: 4245 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1764504246,
size: 0.5,
source: 176450,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 3 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 3 * Math.PI / N) * 10;
g.nodes.push({
id: 165762,
label: 'EVENT: QBIO/CANCER INITIATIVE JOINT SYMPOSIUM',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/qbio-cancer-initiative-joint-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246165762,
size: 0.5,
source: 4246,
target: 165762,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1657624246,
size: 0.5,
source: 165762,
target: 4246 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 78773) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 16576278773,
size: 0.5,
source: 165762,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 4 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 4 * Math.PI / N) * 10;
g.nodes.push({
id: 164336,
label: 'PROJECT: Cytoskeleton and Mechanobiology projects',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/cytoskeleton-and-mechanobiology-projects/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246164336,
size: 0.5,
source: 4246,
target: 164336,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8332) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643368332,
size: 0.5,
source: 164336,
target: 8332 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 145369,
label: 'Emmanuel Terriac',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/08/research_pasteur-emmanuel-terriac-emmanuel-terriac-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-terriac/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 164336145369,
size: 0.5,
source: 164336,
target: 145369 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 115296,
label: 'Gaëlle Dutour-Provenzano',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=115296',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 164336115296,
size: 0.5,
source: 164336,
target: 115296 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 127529,
label: 'Sara Khalilian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/06/research_pasteur-sara-khalilian-sara-khalilian-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sara-khalilian/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 164336127529,
size: 0.5,
source: 164336,
target: 127529 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 169070,
label: 'Elvira Infante',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/10/research_pasteur-elvira-infante-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/elvira-infante/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 164336169070,
size: 0.5,
source: 164336,
target: 169070 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643364246,
size: 0.5,
source: 164336,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 5 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 5 * Math.PI / N) * 10;
g.nodes.push({
id: 164334,
label: 'PROJECT: Covid19 related project',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/covid19-related-project/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246164334,
size: 0.5,
source: 4246,
target: 164334,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4245) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643344245,
size: 0.5,
source: 164334,
target: 4245 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 167227,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 164334167227,
size: 0.5,
source: 164334,
target: 167227 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643344246,
size: 0.5,
source: 164334,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 6 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 6 * Math.PI / N) * 10;
g.nodes.push({
id: 164331,
label: 'PROJECT: Cell Polarity projects',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/cell-polarity-projects/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246164331,
size: 0.5,
source: 4246,
target: 164331,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4245) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643314245,
size: 0.5,
source: 164331,
target: 4245 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 113031) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 164331113031,
size: 0.5,
source: 164331,
target: 113031 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643314246,
size: 0.5,
source: 164331,
target: 4246 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4675) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643314675,
size: 0.5,
source: 164331,
target: 4675 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8332) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1643318332,
size: 0.5,
source: 164331,
target: 8332 });
// adding node
var x_node = Math.cos(2 * 7 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 7 * Math.PI / N) * 10;
g.nodes.push({
id: 158464,
label: 'PROGRAM_PROJECT: Cancer Initiative',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/05/research_pasteur-encancer-initiativefrinitiative-cancer-institutpasteur-i05997-axe-cancer-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/cancer-initiative/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246158464,
size: 0.5,
source: 4246,
target: 158464,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4176) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1584644176,
size: 0.5,
source: 158464,
target: 4176 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1584644246,
size: 0.5,
source: 158464,
target: 4246 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4962,
label: 'Jean-Pierre Vartanian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/09/research_pasteur-jean-pierre-vartanian-photo-jpv--150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jean-pierre-vartanian/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1584644962,
size: 0.5,
source: 158464,
target: 4962 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4483,
label: 'Han Li',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_han_li_small-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/han-li/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1584644483,
size: 0.5,
source: 158464,
target: 4483 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4138,
label: 'Marc Delarue',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_marc2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marc-delarue/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1584644138,
size: 0.5,
source: 158464,
target: 4138 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4355,
label: 'Ivo Gomperts Boneca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-ivo-gomperts-boneca-p9090188-copie-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ivo-gomperts-boneca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1584644355,
size: 0.5,
source: 158464,
target: 4355 });
// adding node
var x_node = Math.cos(2 * 8 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 8 * Math.PI / N) * 10;
g.nodes.push({
id: 121754,
label: 'TEAM: UMR3691 – Physiological and pathological cellular dynamics',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/physiological-and-pathological-cellular-dynamics/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4246121754,
size: 0.5,
source: 4246,
target: 121754,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1217544246,
size: 0.5,
source: 121754,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 9 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 9 * Math.PI / N) * 10;
g.nodes.push({
id: 89637,
label: 'EVENT: 2nd QBio symposium : mechanical forces in biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-poster-a3-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/event/2nd-qbio-symposium-mechanical-forces-in-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 424689637,
size: 0.5,
source: 4246,
target: 89637,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 78773) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 8963778773,
size: 0.5,
source: 89637,
target: 78773 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 75880,
label: 'Nicolas Dray',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_nico1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nicolas-dray/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 8963775880,
size: 0.5,
source: 89637,
target: 75880 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 1022,
label: 'Patrick England',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/Patrick1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/patrick-england/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 896371022,
size: 0.5,
source: 89637,
target: 1022 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4629,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 896374629,
size: 0.5,
source: 89637,
target: 4629 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 896374246,
size: 0.5,
source: 89637,
target: 4246 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4939,
label: 'Sven van Teeffelen',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4939',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 896374939,
size: 0.5,
source: 89637,
target: 4939 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 51154,
label: 'Guillaume Dumenil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_research.pasteur.fr_fig101-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-dumenil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 8963751154,
size: 0.5,
source: 89637,
target: 51154 });
// adding node
var x_node = Math.cos(2 * 10 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 10 * Math.PI / N) * 10;
g.nodes.push({
id: 10233,
label: 'PROJECT: Reorganization of cytoskeletal elements and cell migration – Perturbation of the regulation of cytoskeletal networks in glioblastoma cells',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/reorganization-of-cytoskeletal-elements-and-cell-migration-perturbation-of-the-regulation-of-cytoskeletal-networks-in-glioblastoma-cells/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 424610233,
size: 0.5,
source: 4246,
target: 10233,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 102334246,
size: 0.5,
source: 10233,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 11 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 11 * Math.PI / N) * 10;
g.nodes.push({
id: 10221,
label: 'PROJECT: Determining the central components of polarity pathways and their affection during gliomagenesis',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/determining-the-central-components-of-polarity-pathways-and-their-affection-during-gliomagenesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 424610221,
size: 0.5,
source: 4246,
target: 10221,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 102214246,
size: 0.5,
source: 10221,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 12 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 12 * Math.PI / N) * 10;
g.nodes.push({
id: 10220,
label: 'PROJECT: Role and dynamics of cell-cell interactions during cell polarization and collective directed migration',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/role-and-dynamics-of-cell-cell-interactions-during-cell-polarization-and-collective-directed-migration/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 424610220,
size: 0.5,
source: 4246,
target: 10220,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 102204246,
size: 0.5,
source: 10220,
target: 4246 });
// adding node
var x_node = Math.cos(2 * 13 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 13 * Math.PI / N) * 10;
g.nodes.push({
id: 6139,
label: 'TEAM: Cell Polarity, Migration And Cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_cell-polarity-migration-and-cancer-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/cell-polarity-migration-and-cancer__trashed/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 42466139,
size: 0.5,
source: 4246,
target: 6139,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4245) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61394245,
size: 0.5,
source: 6139,
target: 4245 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 8528,
label: 'Marie Lemesle',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-marie-lemesle-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-lemesle/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61398528,
size: 0.5,
source: 6139,
target: 8528 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8332) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61398332,
size: 0.5,
source: 6139,
target: 8332 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4675) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61394675,
size: 0.5,
source: 6139,
target: 4675 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 127529) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6139127529,
size: 0.5,
source: 6139,
target: 127529 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 145369) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6139145369,
size: 0.5,
source: 6139,
target: 145369 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 169070) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6139169070,
size: 0.5,
source: 6139,
target: 169070 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 177376,
label: 'Lucas Pradeau',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/02/research_pasteur-lucas-pradeau-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lucas-pradeau/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139177376,
size: 0.5,
source: 6139,
target: 177376 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4395,
label: 'Emma Colucci',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_colucci-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/emma-colucci/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61394395,
size: 0.5,
source: 6139,
target: 4395 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4403,
label: 'Laurent Boucontet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_boucontet-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/laurent-boucontet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61394403,
size: 0.5,
source: 6139,
target: 4403 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 198479,
label: 'Karim Sebastien',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/03/research_pasteur-karim-sebastien-karime-sebastien-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/karim-sebastien/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139198479,
size: 0.5,
source: 6139,
target: 198479 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 199718,
label: 'Matthieu Gélin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/04/research_pasteur-mugshot-square-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/matthieu-gelin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139199718,
size: 0.5,
source: 6139,
target: 199718 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 204483,
label: 'Hugo Siegfried',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/07/research_pasteur-photo-hugo-siegfried-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/hugo-siegfried/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139204483,
size: 0.5,
source: 6139,
target: 204483 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 210213,
label: 'Lea Manke',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/10/research_pasteur-img-2418-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lea-manke/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139210213,
size: 0.5,
source: 6139,
target: 210213 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 212392,
label: 'Julie Laplace',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-enjulie-laplace-julie-laplace-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/julie-laplace/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139212392,
size: 0.5,
source: 6139,
target: 212392 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 223157,
label: 'Joséphine Schelle',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/03/research_pasteur-josephine-schelle-0058-hd-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/josephine-schelle/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139223157,
size: 0.5,
source: 6139,
target: 223157 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 230353,
label: 'Aleksi Isomursu',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/09/research_pasteur-enaleksi-isomursu-isomursu-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/aleksi-isomursu/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139230353,
size: 0.5,
source: 6139,
target: 230353 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 230762,
label: 'John Dallon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/09/research_pasteur-enjohn-dallon-john-dallon.pdf1--150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/john-dallon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139230762,
size: 0.5,
source: 6139,
target: 230762 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 232691,
label: 'Imge Ozugergin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-enimge-ozugergin-imge-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/imge-ozugergin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139232691,
size: 0.5,
source: 6139,
target: 232691 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 232800,
label: 'Elisha Dallon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-enelisha-dallon-research-pasteur-enelisha-dallon-elisha-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/elisha-dallon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139232800,
size: 0.5,
source: 6139,
target: 232800 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 234090,
label: 'Maya Ezzo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/11/research_pasteur-maya-ezzo-maya-ezzo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maya-ezzo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139234090,
size: 0.5,
source: 6139,
target: 234090 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 235944,
label: 'Anna Moreno',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/12/research_pasteur-photoannamoreno1-photoannamoreno1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anna-moreno/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6139235944,
size: 0.5,
source: 6139,
target: 235944 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4246) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61394246,
size: 0.5,
source: 6139,
target: 4246 });
var s = new sigma({
//container: document.getElementById('graph-main'),
graph: g,
renderer: {
// IMPORTANT:
// This works only with the canvas renderer, so the
// renderer type set as "canvas" is necessary here.
container: document.getElementById('graph-main'),
type: 'canvas'
},
settings: {
minNodeSize: 6,
maxNodeSize: 35,
mouseWheelEnabled: false,
font: 'Montserrat',
labelThreshold:25,
borderSize:1,
defaultNodeBorderColor: '#999',
sideMargin:25,
}
});
// We first need to save the original colors of our
// nodes and edges, like this:
s.graph.nodes().forEach(function(n) {
n.originalColor = n.color;
});
s.graph.edges().forEach(function(e) {
e.originalColor = e.color;
});
// When a node is clicked, we check for each node
// if it is a neighbor of the clicked one. If not,
// we set its color as grey, and else, it takes its
// original color.
// We do the same for the edges, and we only keep
// edges that have both extremities colored.
s.bind('clickNode', function(e) {
var nodeId = e.data.node.id,
toKeep = s.graph.neighbors(nodeId);
toKeep[nodeId] = e.data.node;
s.graph.nodes().forEach(function(n) {
if (toKeep[n.id])
n.color = '#35a9f5';
else
n.color = '#dddddd';
});
s.graph.edges().forEach(function(e) {
if (toKeep[e.source] && toKeep[e.target])
e.color = '#35a9f5';
else
e.color = '#dddddd';
});
// Since the data has been modified, we need to
// call the refresh method to make the colors
// update effective.
s.refresh();
});
// When the stage is clicked, we just color each
// node and edge with its original color.
s.bind('clickStage', function(e) {
s.graph.nodes().forEach(function(n) {
n.color = n.originalColor;
});
s.graph.edges().forEach(function(e) {
e.color = e.originalColor;
});
// Same as in the previous event:
s.refresh();
});
s.bind("doubleClickNode", function (e) {
$("#canvas-wrap, .sigma-scene, .sigma-mouse").val();
ajax_load_page( e.data.node.page_url );
});
var c = s.camera;
s.bind("rightClickStage", function (e) {
sigma.misc.animation.camera(c, {
ratio: c.ratio * c.settings('zoomingRatio')
}, {
duration: 200
});
});
// Configure the noverlap layout:
var noverlapListener = s.configNoverlap({
nodeMargin: 10,
scaleNodes: 0.3,
gridSize: 1,
easing: 'quadraticInOut', // animation transition function
duration: 4000 // animation duration. Long here for the purposes of this example only
});
// Bind the events:
noverlapListener.bind('start stop interpolate', function(e) {
//console.log(e.type);
if(e.type === 'start') {
//console.time('noverlap');
}
if(e.type === 'interpolate') {
//console.timeEnd('noverlap');
}
});
// Start the layout:
s.startNoverlap();
//s.refresh();
// Initialize the dragNodes plugin:
var dragListener = sigma.plugins.dragNodes(s, s.renderers[0]);
dragListener.bind('startdrag', function(event) {
});
dragListener.bind('drag', function(event) {
});
dragListener.bind('drop', function(event) {
});
dragListener.bind('dragend', function(event) {
});