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: 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',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=29
// 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: 234579,
label: 'NEWS: On Mon 11/18, we held a mini symposium on the novel perspectives in human embryo research and Stem cell day. Lively discussions thanks to our prominent speakers and participants!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/on-mon-11-18-we-held-a-mini-symposium-on-the-novel-perspectives-in-human-embryo-research-and-stem-cell-day-lively-discussions-thanks-to-our-prominent-speakers-and-participants/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773234579,
size: 0.5,
source: 78773,
target: 234579,
});
//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: 64150,
label: 'Laure Bally-Cuif',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_laure_bally-cuiff-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/laure-bally-cuif/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 23457964150,
size: 0.5,
source: 234579,
target: 64150 });
//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: 230940,
label: 'Daniel Manzoni de Almeida',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/research_pasteur-encell-biology-amp-infectionfrbiologie-cellulaire-et-infection-research-pasteur-encell-biology-amp-infectionfrbiologie-cellulaire-et-infection-screenshot-20240924-144250-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/daniel-manzoni-de-almeida/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 234579230940,
size: 0.5,
source: 234579,
target: 230940 });
//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: 4553,
label: 'Sigolène Meilhac',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-sigolene-meilhac-meilhac-sigolene-6578c-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sigolene-meilhac/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2345794553,
size: 0.5,
source: 234579,
target: 4553 });
//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: 23457978773,
size: 0.5,
source: 234579,
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: 4606,
label: 'Pablo Navarro Gil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-institut-pasteur_portraits-studio_gcc_162-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/pablo-navarro-gil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2345794606,
size: 0.5,
source: 234579,
target: 4606 });
//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: 4876,
label: 'Shahragim Tajbakhsh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-shahragim-tajbakhsh-tajbakhsh-photo2024-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/shahragim-tajbakhsh/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2345794876,
size: 0.5,
source: 234579,
target: 4876 });
//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: 4824,
label: 'François Schweisguth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-fs3-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/francois-schweisguth/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2345794824,
size: 0.5,
source: 234579,
target: 4824 });
// 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: 234552,
label: 'NEWS: On Monday, November 18, we held a Minisymposium on the new perspectives of human embryo research and STEM CELL DAY. Lively discussions thanks to our outstanding speakers and participants!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/on-monday-november-18-we-held-a-minisymposium-on-the-new-perspectives-of-human-embryo-research-and-stem-cell-day-lively-discussions-thanks-to-our-outstanding-speakers-and-participants__trashed/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773234552,
size: 0.5,
source: 78773,
target: 234552,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 23455264150,
size: 0.5,
source: 234552,
target: 64150 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345524553,
size: 0.5,
source: 234552,
target: 4553 });
//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: 23455278773,
size: 0.5,
source: 234552,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4606) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345524606,
size: 0.5,
source: 234552,
target: 4606 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345524824,
size: 0.5,
source: 234552,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345524876,
size: 0.5,
source: 234552,
target: 4876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 230940) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 234552230940,
size: 0.5,
source: 234552,
target: 230940 });
// 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: 234525,
label: 'NEWS: On Mon 11/18, we held a Mini-Symposium: “The Human Embryo: Novel Perspectives in Research and Disease Mechanisms” and STEM CELL DAY. Lively discussions thanks to our prominent speakers and participants!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/on-mon-11-18-we-held-a-on-mon-11-18-we-held-a-mini-symposium-the-human-embryo-novel-perspectives-in-research-and-disease-mechanismsand-stem-cell-day-lively-discussions-thanks-to-our-prom/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773234525,
size: 0.5,
source: 78773,
target: 234525,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 23452564150,
size: 0.5,
source: 234525,
target: 64150 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345254553,
size: 0.5,
source: 234525,
target: 4553 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 230940) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 234525230940,
size: 0.5,
source: 234525,
target: 230940 });
//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: 23452578773,
size: 0.5,
source: 234525,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4606) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345254606,
size: 0.5,
source: 234525,
target: 4606 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345254824,
size: 0.5,
source: 234525,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2345254876,
size: 0.5,
source: 234525,
target: 4876 });
// 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: 221520,
label: 'EVENT: The human embryo : novel perspectives in research and disease mechanisms',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/the-human-embryo-novel-perspectives-in-research-and-disease-mechanisms/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773221520,
size: 0.5,
source: 78773,
target: 221520,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 22152064150,
size: 0.5,
source: 221520,
target: 64150 });
//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: 22152078773,
size: 0.5,
source: 221520,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2215204553,
size: 0.5,
source: 221520,
target: 4553 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 230940) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 221520230940,
size: 0.5,
source: 221520,
target: 230940 });
// 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: 221989,
label: 'EVENT: Qbio lunch/minisymposium #1: Mechanisms and mechanics of morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/03/research_pasteur-qbio-minsymposium-morphogenesis-small-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/event/qbio-lunch-minisymposium-1-mechanisms-and-mechanics-of-morphogenesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773221989,
size: 0.5,
source: 78773,
target: 221989,
});
//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: 22198978773,
size: 0.5,
source: 221989,
target: 78773 });
// 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: 217990,
label: 'NEWS: How spatial bias in apoptosis can modulate tissue shape and size?',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-how-spatial-bias-in-apoptosis-can-modulate-tissue-shape-and-size-local-z-projection-of-20190404-5ael-slide1-disc-0-magenta-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/how-spatial-bias-in-apoptosis-can-modulate-tissue-shape-and-size/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773217990,
size: 0.5,
source: 78773,
target: 217990,
});
//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: 108104,
label: 'Alexis Matamoro Vidal',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/05/research_pasteur-picture-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/alexis-matamoro-vidal/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 217990108104,
size: 0.5,
source: 217990,
target: 108104 });
//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: 132366,
label: 'Tom Cumming',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-tomcumming-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/tom-cumming/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 217990132366,
size: 0.5,
source: 217990,
target: 132366 });
//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: 7785,
label: 'Florence Levillayer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-florence-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/florence-levillayer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2179907785,
size: 0.5,
source: 217990,
target: 7785 });
//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: 21799078773,
size: 0.5,
source: 217990,
target: 78773 });
// 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: 212399,
label: 'PROGRAM_PROJECT: Initiative Cellules Souches',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-enthe-ip-stem-cell-initiativefrinitiative-cellules-souches-bandeau-site-reduced-ip-stem-cell-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/program_project/the-ip-stem-cell-initiative/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773212399,
size: 0.5,
source: 78773,
target: 212399,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 21239964150,
size: 0.5,
source: 212399,
target: 64150 });
//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: 21239978773,
size: 0.5,
source: 212399,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2123994553,
size: 0.5,
source: 212399,
target: 4553 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 230940) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 212399230940,
size: 0.5,
source: 212399,
target: 230940 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4606) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2123994606,
size: 0.5,
source: 212399,
target: 4606 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2123994876,
size: 0.5,
source: 212399,
target: 4876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2123994824,
size: 0.5,
source: 212399,
target: 4824 });
//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: 4107,
label: 'Christophe D’Enfert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/denfert_0-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/christophe-denfert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2123994107,
size: 0.5,
source: 212399,
target: 4107 });
// 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: 209241,
label: 'PROJECT: ERC CoG PrApEDoC: Predicting Apoptosis Engagement Downstream of Caspases in vivo',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-1200px-european_research_council_logo.svg-1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/project/erc-consolidator-grant-prapedoc-predicting-apoptosis-engagement-downstream-of-caspasese/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773209241,
size: 0.5,
source: 78773,
target: 209241,
});
//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: 20924178773,
size: 0.5,
source: 209241,
target: 78773 });
// 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: 204413,
label: 'NEWS: Romain Levayer laureate of the Pasteur Vallery-Radot prize 2023',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/romain-levayer-laureate-of-the-pasteur-vallery-radot-prize-2023/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773204413,
size: 0.5,
source: 78773,
target: 204413,
});
//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: 20441378773,
size: 0.5,
source: 204413,
target: 78773 });
// 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: 201864,
label: 'EVENT: Pasteur International Cancer Conference 2023',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/pasteur-international-cancer-conference-2023/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773201864,
size: 0.5,
source: 78773,
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/fr/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/fr/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
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: 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',
page_url: 'https://research.pasteur.fr/fr/member/sandrine-etienne-manneville/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//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/fr/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/fr/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
// 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: 20186478773,
size: 0.5,
source: 201864,
target: 78773 });
// 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: 195390,
label: 'NEWS: ERC Consolidator grant 2022: congratulations to Romain Levayer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-erc-consolidator-grant-2023-congratulations-to-romain-levayer-imagegc3ai-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/erc-consolidator-grant-2023-congratulations-to-romain-levayer/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773195390,
size: 0.5,
source: 78773,
target: 195390,
});
//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: 19539078773,
size: 0.5,
source: 195390,
target: 78773 });
// 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: 188326,
label: 'EVENT: Qbio Seminar Jean-François Joanny',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/qbio-seminar-jean-francois-joanny/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773188326,
size: 0.5,
source: 78773,
target: 188326,
});
//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: 18832678773,
size: 0.5,
source: 188326,
target: 78773 });
// 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: 187413,
label: 'EVENT: Qbio symposium MeMoDEvo: Mechanics Morphogenesis Development and Evolution',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-qbio-symposium-memodevo-mechanics-morphogenesis-development-and-evolution-haeckel-phaeodaria-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/event/qbio-symposium-memodevo-mechanics-morphogenesis-development-and-evolution/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773187413,
size: 0.5,
source: 78773,
target: 187413,
});
//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: 18741378773,
size: 0.5,
source: 187413,
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: 170256,
label: 'Thibaut Brunet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/11/research_pasteur-thibaut-brunet-headshot-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/thibaut-brunet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187413170256,
size: 0.5,
source: 187413,
target: 170256 });
//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: 3968,
label: 'Roberto Toro',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_toror-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/roberto-toro/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1874133968,
size: 0.5,
source: 187413,
target: 3968 });
//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: 187502,
label: 'Katja Heuer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-katja-heuer-katja-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/katja-heuer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187413187502,
size: 0.5,
source: 187413,
target: 187502 });
// 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: 183747,
label: 'NEWS: New publication – Microtubules depletion by effector caspases is an important rate-limiting step of extrusion',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/new-publication-microtubules-depletion-by-effector-caspases-is-an-important-rate-limiting-step-of-extrusion/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773183747,
size: 0.5,
source: 78773,
target: 183747,
});
//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: 90531,
label: 'Alexis Villars',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/?post_type=member&p=90531',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 18374790531,
size: 0.5,
source: 183747,
target: 90531 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 108104) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 183747108104,
size: 0.5,
source: 183747,
target: 108104 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7785) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1837477785,
size: 0.5,
source: 183747,
target: 7785 });
//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: 18374778773,
size: 0.5,
source: 183747,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 14 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 14 * 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/fr/event/qbio-cancer-initiative-joint-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773165762,
size: 0.5,
source: 78773,
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 * 15 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 15 * Math.PI / N) * 10;
g.nodes.push({
id: 160982,
label: 'NEWS: Dying cells protect their neighbours to maintain the cohesion of our tissues',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/06/research_pasteur-cell-death-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/dying-cells-protect-their-neighbours-to-maintain-the-cohesion-of-our-tissues/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773160982,
size: 0.5,
source: 78773,
target: 160982,
});
//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: 16098278773,
size: 0.5,
source: 160982,
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: 90349,
label: 'Léo Valon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-leo-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/leo-valon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 16098290349,
size: 0.5,
source: 160982,
target: 90349 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7785) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1609827785,
size: 0.5,
source: 160982,
target: 7785 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90531) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 16098290531,
size: 0.5,
source: 160982,
target: 90531 });
//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: 139528,
label: 'Mathilde Chouly',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-img_0486-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/mathilde-chouly/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 160982139528,
size: 0.5,
source: 160982,
target: 139528 });
//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: 113863,
label: 'Fabiana Cerqueira-Campos',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/?post_type=member&p=113863',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 160982113863,
size: 0.5,
source: 160982,
target: 113863 });
// adding node
var x_node = Math.cos(2 * 16 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 16 * Math.PI / N) * 10;
g.nodes.push({
id: 149976,
label: 'EVENT: DSCB Department seminar – Dr. Yanlan Mao, University College London: « Coping with Mechanical Stress: Tissue dynamics in development and repair. »',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/149976/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773149976,
size: 0.5,
source: 78773,
target: 149976,
});
//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: 14997678773,
size: 0.5,
source: 149976,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 17 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 17 * Math.PI / N) * 10;
g.nodes.push({
id: 132031,
label: 'EVENT: Qbio symposium: Bridging the scales: from single cells to populations, tissues and organs.',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-affiche_programme_qbio_dec_2019_printreduced-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/event/qbio-symposium-bridging-the-scales-from-single-cells-to-populations-tissues-and-organs/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773132031,
size: 0.5,
source: 78773,
target: 132031,
});
//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: 100027,
label: 'Charles Baroud',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/12/research_pasteur-dsc0120-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/charles-baroud/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 132031100027,
size: 0.5,
source: 132031,
target: 100027 });
//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: 13203178773,
size: 0.5,
source: 132031,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 18 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 18 * Math.PI / N) * 10;
g.nodes.push({
id: 126627,
label: 'EVENT: Cell death and epithelial homeostasis unit seminar: « Using microfluidics for quantitative studies of post-embryonic development in C. elegans», by Wolfgang Keil, Physico-Chemistry department, Institut Curie',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/cell-death-and-epithelial-homeostasis-unit-seminar-using-microfluidics-for-quantitative-studies-of-post-embryonic-development-in-c-elegans-by-wolfgang-keil-physico-chemistry-departme/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773126627,
size: 0.5,
source: 78773,
target: 126627,
});
//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: 12662778773,
size: 0.5,
source: 126627,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 19 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 19 * Math.PI / N) * 10;
g.nodes.push({
id: 121797,
label: 'TEAM: Biologie du Développement et Cellules Souches',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/developmental-and-stem-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773121797,
size: 0.5,
source: 78773,
target: 121797,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12179764150,
size: 0.5,
source: 121797,
target: 64150 });
//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: 12179778773,
size: 0.5,
source: 121797,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 20 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 20 * Math.PI / N) * 10;
g.nodes.push({
id: 116654,
label: 'EVENT: Developmental & Stem Cell Biology seminar by Doctor Jochen Rink, Max Planck Institute of Molecular Cell Biology and Genetics, Dresden, Germany',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/developmental-stem-cell-biology-seminar-by-doctor-jochen-rink-max-planck-institute-of-molecular-cell-biology-and-genetics-dresden-germany/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773116654,
size: 0.5,
source: 78773,
target: 116654,
});
//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: 11665478773,
size: 0.5,
source: 116654,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 21 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 21 * Math.PI / N) * 10;
g.nodes.push({
id: 101860,
label: 'EVENT: HDR Defense by Romain Levayer : “Cell death and epithelial homeostasis: from spatial competition to orchestration of epithelial cell elimination”.',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/hdr-defense-romain-levayer-cell-death-epithelial-homeostasis-spatial-competition-orchestration-epithelial-cell-elimination/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 78773101860,
size: 0.5,
source: 78773,
target: 101860,
});
//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: 10186078773,
size: 0.5,
source: 101860,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 22 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 22 * 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/fr/event/2nd-qbio-symposium-mechanical-forces-in-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877389637,
size: 0.5,
source: 78773,
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/fr/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/fr/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/fr/?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/fr/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 * 23 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 23 * Math.PI / N) * 10;
g.nodes.push({
id: 78781,
label: 'TEAM: Mort cellulaire et homéostasie des épithéliums',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_bandeau-g5-r-levayer-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/cell-death-and-epithelial-homeostasis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877378781,
size: 0.5,
source: 78773,
target: 78781,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7785) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 787817785,
size: 0.5,
source: 78781,
target: 7785 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90349) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7878190349,
size: 0.5,
source: 78781,
target: 90349 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 108104) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 78781108104,
size: 0.5,
source: 78781,
target: 108104 });
//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: 132361,
label: 'Ralitza Staneva',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-photo_rali-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/ralitza-staneva/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781132361,
size: 0.5,
source: 78781,
target: 132361 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 132366) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 78781132366,
size: 0.5,
source: 78781,
target: 132366 });
//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: 197944,
label: 'Flora Crozet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/03/research_pasteur-floracrozet-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/flora-crozet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781197944,
size: 0.5,
source: 78781,
target: 197944 });
//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: 211100,
label: 'Aline Grata',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/10/research_pasteur-enaline-grata-image-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/aline-grata/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781211100,
size: 0.5,
source: 78781,
target: 211100 });
//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: 230951,
label: 'Javad Najafi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/09/research_pasteur-enjavad-najafi-1000010571-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/javad-najafi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781230951,
size: 0.5,
source: 78781,
target: 230951 });
//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: 232064,
label: 'Sonia Vasco De Almeida',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-ensonia-vasco-de-almeida-sonia-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sonia-vasco-de-almeida/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781232064,
size: 0.5,
source: 78781,
target: 232064 });
//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: 236013,
label: 'Antonio Tagua Janez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/12/research_pasteur-enantonio-tagua-janez-antonio-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/antonio-tagua-janez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78781236013,
size: 0.5,
source: 78781,
target: 236013 });
//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: 7878178773,
size: 0.5,
source: 78781,
target: 78773 });
// adding node
var x_node = Math.cos(2 * 24 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 24 * Math.PI / N) * 10;
g.nodes.push({
id: 78907,
label: 'PROJECT: Commitment to apoptosis and the orchestration of cell clearance',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_scat3-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/project/commitment-to-apoptosis-and-the-orchestration-of-cell-clearance/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877378907,
size: 0.5,
source: 78773,
target: 78907,
});
//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: 7890778773,
size: 0.5,
source: 78907,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7785) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 789077785,
size: 0.5,
source: 78907,
target: 7785 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90531) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7890790531,
size: 0.5,
source: 78907,
target: 90531 });
// adding node
var x_node = Math.cos(2 * 25 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 25 * Math.PI / N) * 10;
g.nodes.push({
id: 78894,
label: 'PROJECT: ERC-2017-StG_CoSpaDD: Competition for space in development and disease',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-1200px-european_research_council_logo.svg-1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/project/erc-2017-stg_cospadd/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877378894,
size: 0.5,
source: 78773,
target: 78894,
});
//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: 7889478773,
size: 0.5,
source: 78894,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7785) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 788947785,
size: 0.5,
source: 78894,
target: 7785 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90349) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7889490349,
size: 0.5,
source: 78894,
target: 90349 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90531) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7889490531,
size: 0.5,
source: 78894,
target: 90531 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 108104) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 78894108104,
size: 0.5,
source: 78894,
target: 108104 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 113863) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 78894113863,
size: 0.5,
source: 78894,
target: 113863 });
//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: 125084,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 78894125084,
size: 0.5,
source: 78894,
target: 125084 });
// adding node
var x_node = Math.cos(2 * 26 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 26 * Math.PI / N) * 10;
g.nodes.push({
id: 71491,
label: 'PROGRAM_PROJECT: Biologie quantitative',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/07/research.pasteur.fr_bandeau-quantitative-biology-2-150x150.png',
page_url: 'https://research.pasteur.fr/fr/program_project/quantitative-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877371491,
size: 0.5,
source: 78773,
target: 71491,
});
//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: 7149178773,
size: 0.5,
source: 71491,
target: 78773 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 100027) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 71491100027,
size: 0.5,
source: 71491,
target: 100027 });
//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: 95285,
label: 'Thomas Gregor',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/09/research_pasteur-gregor_pic2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/thomas-gregor/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 7149195285,
size: 0.5,
source: 71491,
target: 95285 });
//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: 50133,
label: 'Jean-Baptiste Masson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-jbm_photo_serieux_low_res-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/jean-baptiste-masson/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 7149150133,
size: 0.5,
source: 71491,
target: 50133 });
// adding node
var x_node = Math.cos(2 * 27 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 27 * Math.PI / N) * 10;
g.nodes.push({
id: 21426,
label: 'PROGRAM_PROJECT: LabEx Revive – Biologie régénératrice et médicine',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_stem-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/program_project/revive/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877321426,
size: 0.5,
source: 78773,
target: 21426,
});
//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: 4729,
label: 'Marina Caillet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_marina-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/marina-caillet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 214264729,
size: 0.5,
source: 21426,
target: 4729 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264876,
size: 0.5,
source: 21426,
target: 4876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264824,
size: 0.5,
source: 21426,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4606) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264606,
size: 0.5,
source: 21426,
target: 4606 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2142664150,
size: 0.5,
source: 21426,
target: 64150 });
//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: 193569,
label: 'Cecile Martinat (I-Stem, Evry)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-encecile-martinat-i-stem-evry-1725439907679-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/epartner/cecile-martinat-i-stem-evry/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426193569,
size: 0.5,
source: 21426,
target: 193569 });
//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: 194846,
label: 'Alice Jouneau (EPEE – INRAE)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enalice-jouneau-epee-inrae-alice-jouneau2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/epartner/alice-jouneau-embryo-and-pluripotency-epigenetic-and-environment-epee-inrae/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194846,
size: 0.5,
source: 21426,
target: 194846 });
//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: 194872,
label: 'Philippe Menasché (Inserm U970, APHP)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-menache-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/epartner/philippe-menasche-inserm-u970-hopital-europeen-georges-pompidou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194872,
size: 0.5,
source: 21426,
target: 194872 });
//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: 194886,
label: 'Raphael Scharfmann (Institut Cochin, Paris)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enraphael-scharfmann-institut-cochin-paris-raphael-scharfmann-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/epartner/raphael-scharfmann-institut-cochin-paris/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194886,
size: 0.5,
source: 21426,
target: 194886 });
//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: 194902,
label: 'Frédéric Relaix (Institut Mondor de Recherche Biomédicale – IMRB)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-fred-relaix-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/epartner/frederic-relaix-institut-mondor-de-recherche-biomedicale-imrb/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194902,
size: 0.5,
source: 21426,
target: 194902 });
// adding node
var x_node = Math.cos(2 * 28 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 28 * Math.PI / N) * 10;
g.nodes.push({
id: 20,
label: 'DEPARTMENT: Biologie du développement et cellules souches',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/research_pasteur-endevelopmental-and-stem-cell-biologyfrbiologie-du-developpement-et-cellules-souches-bandeau-bdcs-150x150.png',
page_url: 'https://research.pasteur.fr/fr/department/developmental-stem-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 7877320,
size: 0.5,
source: 78773,
target: 20,
});
//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: 105747,
label: 'Doriane Thouvenot',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/doriane-thouvenot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 20105747,
size: 0.5,
source: 20,
target: 105747 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 230940) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 20230940,
size: 0.5,
source: 20,
target: 230940 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2064150,
size: 0.5,
source: 20,
target: 64150 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 204553,
size: 0.5,
source: 20,
target: 4553 });
//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: 2078773,
size: 0.5,
source: 20,
target: 78773 });
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) {
});