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: 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',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=35
// 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: 222428,
label: 'EVENT: Symposium “Microbial Cell Wall” ; Monday, June 3rd ; Amphitheater Agnès Ullmann',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/symposium-microbial-cell-wall-monday-june-3rd-jules-bordet-room/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355222428,
size: 0.5,
source: 4355,
target: 222428,
});
//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: 4443,
label: 'Vishu Kumar Aimanianda Bopaiah',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/11/research_pasteur-photo-4cm-essai-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/vishu-kumar-aimanianda-bopaiah/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2224284443,
size: 0.5,
source: 222428,
target: 4443 });
//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: 4009,
label: 'Carmen Buchrieser',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_carmen1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/carmen-buchrieser/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2224284009,
size: 0.5,
source: 222428,
target: 4009 });
//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: 4447,
label: 'Thierry Fontaine',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-20190614_185922_crop-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thierry-fontaine/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2224284447,
size: 0.5,
source: 222428,
target: 4447 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2224284355,
size: 0.5,
source: 222428,
target: 4355 });
// 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: 213860,
label: 'EVENT: Joint Microbiology and Computational Biology departments seminar: Yves Brun (University of Montreal, Canada) “Antimicrobial discovery by artificial intelligence-assisted high throughput microscopy” ; Wednesday 13 December @10.30am ; Agnes Ullman Amphitheater.',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/joint-microbiology-and-computational-biology-departments-seminar-yves-brun-university-of-montreal-canada-antimicrobial-discovery-by-artificial-intelligence-assisted-high-throughput-microscopy/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355213860,
size: 0.5,
source: 4355,
target: 213860,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2138604355,
size: 0.5,
source: 213860,
target: 4355 });
//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: 4977,
label: 'Christophe Zimmer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-christophe-zimmer-chz-photo-resized-bw-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-zimmer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2138604977,
size: 0.5,
source: 213860,
target: 4977 });
// 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: 199841,
label: 'EVENT: Symposium on Microbial Extracellular Vesicles ; June 15th, 2023 ; Auditorium François Jacob',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/extracellular-vesicules-from-microbes-symposium-june-15th-2023-auditorium-francois-jacob/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355199841,
size: 0.5,
source: 4355,
target: 199841,
});
//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: 4109,
label: 'Guilhem Janbon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-img_0255r-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guilhem-janbon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414109,
size: 0.5,
source: 199841,
target: 4109 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4009) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1998414009,
size: 0.5,
source: 199841,
target: 4009 });
//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: 4287,
label: 'Mart Krupovic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-mart_krupovic-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mart-krupovic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414287,
size: 0.5,
source: 199841,
target: 4287 });
//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: 98090,
label: 'Julia Bos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/07/research_pasteur-picture1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-julia-bos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19984198090,
size: 0.5,
source: 199841,
target: 98090 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1998414355,
size: 0.5,
source: 199841,
target: 4355 });
//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: 78458,
label: 'Virginija Cvirkaite-Krupovic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_vg-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/virginija-cvirkaite-krupovic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19984178458,
size: 0.5,
source: 199841,
target: 78458 });
//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: 4850,
label: 'Najma Rachidi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_najma-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/najma-rachidi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414850,
size: 0.5,
source: 199841,
target: 4850 });
// 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: 191169,
label: 'EVENT: Dept Microbiology | Seminar “Profiling Pseudomonas aeruginosa infections”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dept-microbiology-seminar-profiling-pseudomonas-aeruginosa-infections/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355191169,
size: 0.5,
source: 4355,
target: 191169,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1911694355,
size: 0.5,
source: 191169,
target: 4355 });
// 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: 184062,
label: 'EVENT: Cell division and cell wall mechanisms – Mini symposium 26th October 2022',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/cell-division-and-cell-wall-mechanisms-mini-symposium-26th-october-2022/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355184062,
size: 0.5,
source: 4355,
target: 184062,
});
//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: 3920,
label: 'Anne Marie Wehenkel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-enanne-marie-wehenkelfrannemarie-wehenkel-research-pasteur-enanne-marie-wehenkelfrannemarie-wehenkel-wehenkel-photo-2021-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/annemarie-wehenkel/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1840623920,
size: 0.5,
source: 184062,
target: 3920 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1840624355,
size: 0.5,
source: 184062,
target: 4355 });
// 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: 179594,
label: 'NEWS: Gut microbes regulate appetite and body temperature',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/gut-microbes-regulate-appetite-and-body-temperature/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355179594,
size: 0.5,
source: 4355,
target: 179594,
});
//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: 79478,
label: 'Ilana Gabanyi',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=79478',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17959479478,
size: 0.5,
source: 179594,
target: 79478 });
//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: 4496,
label: 'Sébastien Wagner',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/sebastien-wagner/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1795944496,
size: 0.5,
source: 179594,
target: 4496 });
//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: 4490,
label: 'Gabriel Lepousez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_gabriel-lepousez1-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/gabriel-lepousez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1795944490,
size: 0.5,
source: 179594,
target: 4490 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1795944355,
size: 0.5,
source: 179594,
target: 4355 });
//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: 4225,
label: 'Gérard Eberl',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_eberl-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gerard-eberl/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1795944225,
size: 0.5,
source: 179594,
target: 4225 });
//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: 3806,
label: 'Pierre-Marie Lledo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-pierre-marie-lledo-lledo-pierre-marie-6653-copie-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pierre-marie-lledo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1795943806,
size: 0.5,
source: 179594,
target: 3806 });
//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: 4360,
label: 'Richard Wheeler',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_photo-for-lab-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/richard-wheeler/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1795944360,
size: 0.5,
source: 179594,
target: 4360 });
// 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: 174532,
label: 'TEAM: U1306 – Host-Microbe interactions and pathophysiology',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/host-microbe-interactions-and-pathophysiology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355174532,
size: 0.5,
source: 4355,
target: 174532,
});
//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: 4359,
label: 'Catherine Werts',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_cwerts-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/catherine-werts/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745324359,
size: 0.5,
source: 174532,
target: 4359 });
//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: 4357,
label: 'Nienke Buddelmeijer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_nienke3a-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nienke-buddelmeijer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745324357,
size: 0.5,
source: 174532,
target: 4357 });
//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: 4358,
label: 'Olivier Danot',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_od4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivier-danot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745324358,
size: 0.5,
source: 174532,
target: 4358 });
//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: 8265,
label: 'Samia Hicham',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/09/research_pasteur-sans-titre-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/samia-hicham/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745328265,
size: 0.5,
source: 174532,
target: 8265 });
//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: 8268,
label: 'Martine Fanton D’Andon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_3jpeg-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/martine-fanton-dandon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745328268,
size: 0.5,
source: 174532,
target: 8268 });
//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: 4210,
label: 'Frédérique Vernel-Pauillac',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fvp-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/frederique-vernel-pauillac/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745324210,
size: 0.5,
source: 174532,
target: 4210 });
//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: 2255,
label: 'Brigitte David-Watine',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/brigitte-david-watine/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745322255,
size: 0.5,
source: 174532,
target: 2255 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1745324360,
size: 0.5,
source: 174532,
target: 4360 });
//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: 81551,
label: 'Aline Rifflet',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/aline-rifflet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17453281551,
size: 0.5,
source: 174532,
target: 81551 });
//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: 164458,
label: 'Kelvin Kho',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/08/research_pasteur-kelvin-kho-kho-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/kelvin-kho/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532164458,
size: 0.5,
source: 174532,
target: 164458 });
//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: 174635,
label: 'Thimoro Cheng',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/thimoro-cheng/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532174635,
size: 0.5,
source: 174532,
target: 174635 });
//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: 174637,
label: 'Stylianos Papadopoulos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-stylianos-papadopoulos-fa10b756-f990-49c4-bc91-220e9afd10f9-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/stylianos-papadopoulos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532174637,
size: 0.5,
source: 174532,
target: 174637 });
//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: 185144,
label: 'Thomas Delerue',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/thomas-delerue/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532185144,
size: 0.5,
source: 174532,
target: 185144 });
//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: 197204,
label: 'Tristan Ruffiot',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-tristan-ruffiot-research-pasteur-tristan-ruffiot-ruffiot-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/tristan-ruffiot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532197204,
size: 0.5,
source: 174532,
target: 197204 });
//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: 197202,
label: 'Phuong Y Mai',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/phuong-y-mai/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532197202,
size: 0.5,
source: 174532,
target: 197202 });
//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: 92462,
label: 'Emmanuel Lemichez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/07/research_pasteur-lemichez-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-lemichez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17453292462,
size: 0.5,
source: 174532,
target: 92462 });
//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: 4101,
label: 'Marie-Anne Nahori',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_nahori-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-anne-nahori/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745324101,
size: 0.5,
source: 174532,
target: 4101 });
//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: 110116,
label: 'Amel Mettouchi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-amel-profil-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/amel-mettouchi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532110116,
size: 0.5,
source: 174532,
target: 110116 });
//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: 81480,
label: 'Emma Bergsten',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/emma-bergsten/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17453281480,
size: 0.5,
source: 174532,
target: 81480 });
//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: 131298,
label: 'Maud Marechal',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/maud-marechal/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532131298,
size: 0.5,
source: 174532,
target: 131298 });
//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: 194263,
label: 'Juliette Mondy',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/juliette-mondy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532194263,
size: 0.5,
source: 174532,
target: 194263 });
//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: 97480,
label: 'Serena Petracchini',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-serena-petracchini-research-pasteur-serena-petracchini-2023-01-17-13-46-14-whatsapp-image-2023-01-09-at-14.47.52.jpeg-photos-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/serena-petracchini/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17453297480,
size: 0.5,
source: 174532,
target: 97480 });
//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: 129806,
label: 'Eléa Paillares',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-20180711_150350-stand-copie-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/elea-paillares/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532129806,
size: 0.5,
source: 174532,
target: 129806 });
//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: 171436,
label: 'Diane Letourneur',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/11/research_pasteur-diane-letourneur-picture-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/diane-letourneur/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532171436,
size: 0.5,
source: 174532,
target: 171436 });
//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: 76103,
label: 'Jamila Marchich',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/fr-jamila-marchich/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17453276103,
size: 0.5,
source: 174532,
target: 76103 });
//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: 7734,
label: 'Nadine Delarue',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_delarue-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/nadine-delarue/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1745327734,
size: 0.5,
source: 174532,
target: 7734 });
//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: 213341,
label: 'Julie Klein',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/julie-klein/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532213341,
size: 0.5,
source: 174532,
target: 213341 });
//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: 225986,
label: 'Ana Oliveira Paiva',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/ana-oliveira-paiva/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532225986,
size: 0.5,
source: 174532,
target: 225986 });
//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: 225382,
label: 'Benoit Chassaing',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/04/research_pasteur-enbenoit-chassaingfrbenoit-chassaing-picture-1-copy-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/benoit-chassaing/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 174532225382,
size: 0.5,
source: 174532,
target: 225382 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1745324355,
size: 0.5,
source: 174532,
target: 4355 });
// 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: 4355158464,
size: 0.5,
source: 4355,
target: 158464,
});
//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: 1584644176,
size: 0.5,
source: 158464,
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/en/member/sandrine-etienne-manneville/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//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
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//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: 150492,
label: 'EVENT: Seminar DPT Microbiology “Brucella abortus, a polarized bacterial pathogen with a peculiar envelope”, Prof. Xavier De Bolle',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-dpt-microbiology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355150492,
size: 0.5,
source: 4355,
target: 150492,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1504924355,
size: 0.5,
source: 150492,
target: 4355 });
// 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: 150485,
label: 'EVENT: Seminar DPT Microbiology “Transmission of Respiratory Pathogens”, Dr. Jeffrey Weiser',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-dpt-microbiology-transmission-of-respiratory-pathogens/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355150485,
size: 0.5,
source: 4355,
target: 150485,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1504854355,
size: 0.5,
source: 150485,
target: 4355 });
// 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: 149252,
label: 'EVENT: Seminar DPT Microbiology – “From stress to success: how actinobacteria exploit life without a cell wall”, Dr. Dennis CLAESSEN',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/micr/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355149252,
size: 0.5,
source: 4355,
target: 149252,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1492524355,
size: 0.5,
source: 149252,
target: 4355 });
// 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: 148358,
label: 'EVENT: Microbiology DPT Seminar ““Radically new enzymes for antibiotic and natural product biosynthesis” Dr Olivier BERTEAU',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/microbiology-dpt-seminar-radically-new-enzymes-for-antibiotic-and-natural-product-biosynthesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355148358,
size: 0.5,
source: 4355,
target: 148358,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1483584355,
size: 0.5,
source: 148358,
target: 4355 });
// 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: 148348,
label: 'EVENT: Microbiology DPT seminar “The Role of cAMP signalling in Antibiotics Tolerance in Mycobacterium tuberculosis” Dr. Gerald LARROUY-MAUMUS',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/microbiology-dpt-seminar-the-role-of-camp-signalling-in-antibiotics-tolerance-in-mycobacterium-tuberculosis-dr-gerald-larrouy-maumus/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355148348,
size: 0.5,
source: 4355,
target: 148348,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1483484355,
size: 0.5,
source: 148348,
target: 4355 });
// 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: 145255,
label: 'NEWS: Gut microbiota plays a role in brain function and mood regulation',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/gut-microbiota-plays-a-role-in-brain-function-and-mood-regulation/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355145255,
size: 0.5,
source: 4355,
target: 145255,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3806) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1452553806,
size: 0.5,
source: 145255,
target: 3806 });
//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: 4172,
label: 'Laure Guenin-Mace',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/04/research.pasteur.fr_photo-laure-pasteur-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/laure-guenin-mace/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1452554172,
size: 0.5,
source: 145255,
target: 4172 });
//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: 79465,
label: 'Maud Pascal',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_maud-12116-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maud-pascal/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 14525579465,
size: 0.5,
source: 145255,
target: 79465 });
//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: 60900,
label: 'Thomas Laval',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=60900',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 14525560900,
size: 0.5,
source: 145255,
target: 60900 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 81551) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14525581551,
size: 0.5,
source: 145255,
target: 81551 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1452554355,
size: 0.5,
source: 145255,
target: 4355 });
//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: 4171,
label: 'Caroline Demangel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-caroline-demangel-id-caro2-2018-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/caroline-demangel/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1452554171,
size: 0.5,
source: 145255,
target: 4171 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4490) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1452554490,
size: 0.5,
source: 145255,
target: 4490 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1452554225,
size: 0.5,
source: 145255,
target: 4225 });
// 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: 144997,
label: 'CENTER: Biological Resource Center of Institut Pasteur (CRBIP)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/center/biological-resource-center-of-institut-pasteur-crbip/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355144997,
size: 0.5,
source: 4355,
target: 144997,
});
//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: 149334,
label: 'Federica Palma',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/11/research_pasteur-enfederica-palma-federicapalma-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/federica-palma/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997149334,
size: 0.5,
source: 144997,
target: 149334 });
//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: 4787,
label: 'Mariana Ferrari',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-mariana-ferrari-ferrari-mariana-2957-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/mariana-ferrari/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449974787,
size: 0.5,
source: 144997,
target: 4787 });
//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: 7759,
label: 'Alexis Criscuolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_alexiscriscuolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alexis-criscuolo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449977759,
size: 0.5,
source: 144997,
target: 7759 });
//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: 202209,
label: 'Valentine Piquard',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/valentine-piquard/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997202209,
size: 0.5,
source: 144997,
target: 202209 });
//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: 202211,
label: 'Jacques Vanhoutte',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/jacques-vanhoutte/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997202211,
size: 0.5,
source: 144997,
target: 202211 });
//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: 229275,
label: 'Augusto Mantilla Ayala',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/augusto-mantilla-ayala/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997229275,
size: 0.5,
source: 144997,
target: 229275 });
//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: 229109,
label: 'Hanae Chouali',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/07/research_pasteur-enhanae-choualifrhanae-chouali-image-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/hanae-chouali/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997229109,
size: 0.5,
source: 144997,
target: 229109 });
//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: 183185,
label: 'Fay Betsou',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/07/research_pasteur-fay-betsou-fay-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fay-betsou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 144997183185,
size: 0.5,
source: 144997,
target: 183185 });
//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: 2495,
label: 'Sylvain Brisse',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/9c960524567ea360a3_l_2ae2a-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sylvain-brisse/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449972495,
size: 0.5,
source: 144997,
target: 2495 });
//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: 4282,
label: 'Laurent Debarbieux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_ld-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/laurent-debarbieux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449974282,
size: 0.5,
source: 144997,
target: 4282 });
//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: 3957,
label: 'David Bikard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo_cropped-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/david-bikard/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449973957,
size: 0.5,
source: 144997,
target: 3957 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1449974355,
size: 0.5,
source: 144997,
target: 4355 });
//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: 4052,
label: 'Francesca Di Nunzio',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-dscf1697-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francesca-di-nunzio/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1449974052,
size: 0.5,
source: 144997,
target: 4052 });
// 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: 131311,
label: 'PROJECT: Proof of concept of the impact of gut microbiota in the clinical outcome of ICB in mouse models of cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-13-4854_e-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/proof-of-concept-of-the-impact-of-gut-microbiota-in-the-clinical-outcome-of-icb-in-mouse-models-of-lung-cancer/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355131311,
size: 0.5,
source: 4355,
target: 131311,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1313114360,
size: 0.5,
source: 131311,
target: 4360 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1313114355,
size: 0.5,
source: 131311,
target: 4355 });
// 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: 124782,
label: 'PROJECT: Organ-on-Chip Center',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/organ-on-chip-center/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355124782,
size: 0.5,
source: 4355,
target: 124782,
});
//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: 124775,
label: 'Héloïse Mary',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=124775',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 124782124775,
size: 0.5,
source: 124782,
target: 124775 });
//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: 4792,
label: 'Nathalie Sauvonnet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_nathaliesauvonnet-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nathalie-sauvonnet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824792,
size: 0.5,
source: 124782,
target: 4792 });
//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: 4788,
label: 'Alexandre Grassart',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4788',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824788,
size: 0.5,
source: 124782,
target: 4788 });
//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: 107505,
label: 'Elisabeth Labruyère',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-elisabeth-labruyere-capture-decran-2021-01-14-a-13.10.50-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/elisabeth-labruyere/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 124782107505,
size: 0.5,
source: 124782,
target: 107505 });
//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: 1247824245,
size: 0.5,
source: 124782,
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: 4094,
label: 'Javier Pizarro-Cerda',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-javier-pizarro-cerda-javier-pizarro-1300-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/javier-pizarro-cerda/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824094,
size: 0.5,
source: 124782,
target: 4094 });
//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: 58778,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478258778,
size: 0.5,
source: 124782,
target: 58778 });
//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: 3931,
label: 'Lisa Chakrabarti',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_lc2-photo-medium-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lisa-chakrabarti/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247823931,
size: 0.5,
source: 124782,
target: 3931 });
//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: 60986,
label: 'Lida Katsimpardi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/03/research_pasteur-dsc1996-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lida-katsimpardi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478260986,
size: 0.5,
source: 124782,
target: 60986 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4483) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1247824483,
size: 0.5,
source: 124782,
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: 126536,
label: 'Elsa Charifou',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-capture-decran-2020-02-25-a-14.42.51-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/elsa-charifou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 124782126536,
size: 0.5,
source: 124782,
target: 126536 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1247824355,
size: 0.5,
source: 124782,
target: 4355 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1247824360,
size: 0.5,
source: 124782,
target: 4360 });
//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: 83719,
label: 'Michael Connor',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-michael-connor-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/michael-connor/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478283719,
size: 0.5,
source: 124782,
target: 83719 });
//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: 4087,
label: 'Mélanie Hamon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_p1010312-version-2-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/melanie-hamon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824087,
size: 0.5,
source: 124782,
target: 4087 });
//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: 6834,
label: 'Samy Gobaa',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-samy-gobaa-gobaa-samy-1510-e1634550888980-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/samy-gobaa/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247826834,
size: 0.5,
source: 124782,
target: 6834 });
// 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: 117259,
label: 'EVENT: Department of Microbiology – Thesis Defense “Dissecting peptidoglycan trafficking and transport(ers) in Human cells” by Christiane Brenner',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/department-of-microbiology-thesis-defense-dissecting-peptidoglycan-trafficking-and-transporters-in-human-cells-by-christiane-brenner/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355117259,
size: 0.5,
source: 4355,
target: 117259,
});
//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: 4362,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1172594362,
size: 0.5,
source: 117259,
target: 4362 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1172594355,
size: 0.5,
source: 117259,
target: 4355 });
// 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: 117250,
label: 'EVENT: Department of Microbiology: «How bacteriophages protect themselves from CRISPR» by Joe Bondy Denomy',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-organized-by-the-department-of-microbiology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355117250,
size: 0.5,
source: 4355,
target: 117250,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1172504355,
size: 0.5,
source: 117250,
target: 4355 });
// 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: 101834,
label: 'EVENT: LUCA and the universal tree of life: an update',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/luca-universal-tree-life-update/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4355101834,
size: 0.5,
source: 4355,
target: 101834,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1018344355,
size: 0.5,
source: 101834,
target: 4355 });
//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: 4284,
label: 'Patrick Forterre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_patrick-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/patrick-forterre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1018344284,
size: 0.5,
source: 101834,
target: 4284 });
// 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: 90640,
label: 'EVENT: Department of Microbiology – Seminar by Jason Paxman, University of Melbourne (Australia)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/department-of-microbiology-seminar-by-jason-paxman-university-of-melbourne-australia/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435590640,
size: 0.5,
source: 4355,
target: 90640,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 906404355,
size: 0.5,
source: 90640,
target: 4355 });
// 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: 90633,
label: 'EVENT: “Analyse métabolomique : enjeux technologiques et applications biomédicales” by Christophe JUNOT – MICROBIOLOGY DEPARTMENT SEMINAR',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/analyse-metabolomique-enjeux-technologiques-et-applications-biomedicales-by-christophe-junot-microbiology-department-seminar/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435590633,
size: 0.5,
source: 4355,
target: 90633,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 906334355,
size: 0.5,
source: 90633,
target: 4355 });
//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: 7044,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 906337044,
size: 0.5,
source: 90633,
target: 7044 });
// 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: 81554,
label: 'PROJECT: Inhibition of peptidoglycan assembly complexes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-figure-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/inhibition-of-peptidoglycan-assembly-complexes/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435581554,
size: 0.5,
source: 4355,
target: 81554,
});
//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: 63220,
label: 'Karine Nozeret',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_1708404-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/karine-nozeret/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 8155463220,
size: 0.5,
source: 81554,
target: 63220 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4357) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 815544357,
size: 0.5,
source: 81554,
target: 4357 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4358) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 815544358,
size: 0.5,
source: 81554,
target: 4358 });
//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: 4361,
label: 'Allison Williams',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4361',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 815544361,
size: 0.5,
source: 81554,
target: 4361 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8265) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 815548265,
size: 0.5,
source: 81554,
target: 8265 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 815544355,
size: 0.5,
source: 81554,
target: 4355 });
// 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: 20929,
label: 'PROJECT: Adult neurogenesis and brain plasticity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_a-model-system-to-study-adult-neurogenesis1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/a-model-system-to-study-adult-neurogenesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435520929,
size: 0.5,
source: 4355,
target: 20929,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 209294225,
size: 0.5,
source: 20929,
target: 4225 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 209294355,
size: 0.5,
source: 20929,
target: 4355 });
//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: 4987,
label: 'Chiara Zurzolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/11/research_pasteur-chiara-zurzolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/chiara-zurzolo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294987,
size: 0.5,
source: 20929,
target: 4987 });
//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: 6382,
label: 'Fabrice Chretien',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_sans-titre1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fabrice-chretien/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209296382,
size: 0.5,
source: 20929,
target: 6382 });
//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: 3768,
label: 'Fabrice de Chaumont',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_fabrice-de-chaumont-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fabrice-de-chaumont/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209293768,
size: 0.5,
source: 20929,
target: 3768 });
//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: 6371,
label: 'Pauline Speder',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_dsc5160_2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pauline-speder/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209296371,
size: 0.5,
source: 20929,
target: 6371 });
//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: 4489,
label: 'Françoise Lazarini-Serandour',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_francoise-lazarini-serandour-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francoise-lazarini-serandour/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294489,
size: 0.5,
source: 20929,
target: 4489 });
//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: 26499,
label: 'Rebecca Matsas',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/riip_member/rebecca-matsas/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2092926499,
size: 0.5,
source: 20929,
target: 26499 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4490) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 209294490,
size: 0.5,
source: 20929,
target: 4490 });
//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: 4495,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294495,
size: 0.5,
source: 20929,
target: 4495 });
//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: 4488,
label: 'Mariana Alonso',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_foto-website-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mariana-alonso/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294488,
size: 0.5,
source: 20929,
target: 4488 });
//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: 8476,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209298476,
size: 0.5,
source: 20929,
target: 8476 });
//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: 4180,
label: 'James Di Santo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_photojd-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/james-di-santo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294180,
size: 0.5,
source: 20929,
target: 4180 });
//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: 4487,
label: 'Antoine Nissant',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_img_6385-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/antoine-nissant/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 209294487,
size: 0.5,
source: 20929,
target: 4487 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3806) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 209293806,
size: 0.5,
source: 20929,
target: 3806 });
// 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: 71062,
label: 'PROJECT: Think tank: Mucosal Immunology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_microenvironment-and-immunity-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/tig-mucosal-immunology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435571062,
size: 0.5,
source: 4355,
target: 71062,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4180) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 710624180,
size: 0.5,
source: 71062,
target: 4180 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 710624355,
size: 0.5,
source: 71062,
target: 4355 });
//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: 4470,
label: 'Marc Lecuit',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-sans-titre-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marc-lecuit/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 710624470,
size: 0.5,
source: 71062,
target: 4470 });
//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: 4790,
label: 'Armelle Phalipon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_phalipon-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/armelle-phalipon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 710624790,
size: 0.5,
source: 71062,
target: 4790 });
//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: 23955,
label: 'Nadine Cerf-Bensussan',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/nadine-cerf-bensussan/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 7106223955,
size: 0.5,
source: 71062,
target: 23955 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 710624225,
size: 0.5,
source: 71062,
target: 4225 });
// 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: 52701,
label: 'NEWS: Sofia Pombo new PhD student in the BGPB Unit',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/sofia-pombo-new-phd-student-in-the-bgpb-unit/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435552701,
size: 0.5,
source: 4355,
target: 52701,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 527014355,
size: 0.5,
source: 52701,
target: 4355 });
// 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: 46055,
label: 'PROJECT: ERC-2007-Stg-202283-PGNfromSHAPEtoVIR',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_erc8-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/erc-2007-stg-202283-pgnfromshapetovir/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435546055,
size: 0.5,
source: 4355,
target: 46055,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4359) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 460554359,
size: 0.5,
source: 46055,
target: 4359 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 460554360,
size: 0.5,
source: 46055,
target: 4360 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8265) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 460558265,
size: 0.5,
source: 46055,
target: 8265 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8268) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 460558268,
size: 0.5,
source: 46055,
target: 8268 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 460554355,
size: 0.5,
source: 46055,
target: 4355 });
// 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: 41178,
label: 'PROGRAM_PROJECT: Major Federating Program Microbes & Brain',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_grand-federative-program-microbes-brain-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/major-federating-program-microbes-brain/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435541178,
size: 0.5,
source: 4355,
target: 41178,
});
//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: 58995,
label: 'Mallory Perrin-Wolff',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-mallory-perrin-wolff-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mallory-perrin-wolff/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 4117858995,
size: 0.5,
source: 41178,
target: 58995 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 411784225,
size: 0.5,
source: 41178,
target: 4225 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3806) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 411783806,
size: 0.5,
source: 41178,
target: 3806 });
//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: 3801,
label: 'Uwe Maskos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/12/research.pasteur.fr_um_1-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/uwe-maskos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 411783801,
size: 0.5,
source: 41178,
target: 3801 });
//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: 4435,
label: 'Monique Lafon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_m-lafon-site-web-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/monique-lafon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 411784435,
size: 0.5,
source: 41178,
target: 4435 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 411784355,
size: 0.5,
source: 41178,
target: 4355 });
// 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: 24934,
label: 'PROJECT: When Gut Bacteria Changes Brain Functions',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_microbebrain-01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/how-gut-microbiota-could-change-our-brain/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435524934,
size: 0.5,
source: 4355,
target: 24934,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4490) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344490,
size: 0.5,
source: 24934,
target: 4490 });
//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: 4500,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344500,
size: 0.5,
source: 24934,
target: 4500 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4488) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344488,
size: 0.5,
source: 24934,
target: 4488 });
//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: 4485,
label: 'Gilles Gheusi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_ggheusi-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gilles-gheusi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344485,
size: 0.5,
source: 24934,
target: 4485 });
//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: 4523,
label: 'Morgane Besson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/07/research_pasteur-capture-decran-2017-07-22-a-17.21.36-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/morgane-besson/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344523,
size: 0.5,
source: 24934,
target: 4523 });
//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: 4222,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344222,
size: 0.5,
source: 24934,
target: 4222 });
//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: 4481,
label: 'Laetitia Travier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-img_2309rognee-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/laetitia-travier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344481,
size: 0.5,
source: 24934,
target: 4481 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344360,
size: 0.5,
source: 24934,
target: 4360 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 79478) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2493479478,
size: 0.5,
source: 24934,
target: 79478 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 79465) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2493479465,
size: 0.5,
source: 24934,
target: 79465 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3806) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249343806,
size: 0.5,
source: 24934,
target: 3806 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344225,
size: 0.5,
source: 24934,
target: 4225 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344355,
size: 0.5,
source: 24934,
target: 4355 });
//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: 4337,
label: 'Jean-Marc Ghigo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/09/research_pasteur-ghigo-jean-marc-recad.lg_-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jean-marc-ghigo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 249344337,
size: 0.5,
source: 24934,
target: 4337 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4470) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249344470,
size: 0.5,
source: 24934,
target: 4470 });
// adding node
var x_node = Math.cos(2 * 29 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 29 * Math.PI / N) * 10;
g.nodes.push({
id: 24920,
label: 'TOOL: Optogenetic',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/tool/optogenetic/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435524920,
size: 0.5,
source: 4355,
target: 24920,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 249204355,
size: 0.5,
source: 24920,
target: 4355 });
// adding node
var x_node = Math.cos(2 * 30 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 30 * Math.PI / N) * 10;
g.nodes.push({
id: 21582,
label: 'PROGRAM_PROJECT: LabEx Milieu Intérieur',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_dsc-tb0313_01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/milieu-interieur-labex/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435521582,
size: 0.5,
source: 4355,
target: 21582,
});
//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: 209100,
label: 'Mercè Guzman Vendrell',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/09/research_pasteur-enmerce-guzman-vendrellfrmerce-guzman-vendrell-mgv-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/merce-guzman-vendrell/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21582209100,
size: 0.5,
source: 21582,
target: 209100 });
//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: 7844,
label: 'Darragh Duffy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-duffy_photo-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/darragh-duffy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 215827844,
size: 0.5,
source: 21582,
target: 7844 });
//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: 4715,
label: 'Lluis Quintana-Murci',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_quintana_photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lluis-quintana-murci/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 215824715,
size: 0.5,
source: 21582,
target: 4715 });
//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: 215823982,
size: 0.5,
source: 21582,
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: 23974,
label: 'Olivier Lantz',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig105-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/olivier-lantz/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2158223974,
size: 0.5,
source: 21582,
target: 23974 });
//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: 23983,
label: 'Antoine Toubert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig108-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/antoine-toubert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2158223983,
size: 0.5,
source: 21582,
target: 23983 });
//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: 23972,
label: 'Serge Hercberg',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/serge-hercberg/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2158223972,
size: 0.5,
source: 21582,
target: 23972 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4180) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 215824180,
size: 0.5,
source: 21582,
target: 4180 });
//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: 71912,
label: 'Jacques Fellay',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/06/research.pasteur.fr_jacques-fellay.png',
page_url: 'https://research.pasteur.fr/en/epartner/jacques-fellay/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2158271912,
size: 0.5,
source: 21582,
target: 71912 });
//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: 71909,
label: 'Kalle Astrom',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/06/research.pasteur.fr_kalle-astrom-150x150.png',
page_url: 'https://research.pasteur.fr/en/epartner/kalle-astrom/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2158271909,
size: 0.5,
source: 21582,
target: 71909 });
// adding node
var x_node = Math.cos(2 * 31 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 31 * Math.PI / N) * 10;
g.nodes.push({
id: 14686,
label: 'PROGRAM_PROJECT: LabEx IBEID – Integrative Biology of Emerging Infectious Diseases',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_labex-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/integrative-biology-of-emerging-infectious-diseases/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435514686,
size: 0.5,
source: 4355,
target: 14686,
});
//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: 203306,
label: 'Cyril Renassia',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/06/research_pasteur-cyril-renassia-photo-cv-2023-cropped-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/cyril-renassia/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 14686203306,
size: 0.5,
source: 14686,
target: 203306 });
//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: 3949,
label: 'Philippe Bastin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_philippe_bastin-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/philippe-bastin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 146863949,
size: 0.5,
source: 14686,
target: 3949 });
//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: 4775,
label: 'Carla Saleh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_ha68-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/carla-saleh/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 146864775,
size: 0.5,
source: 14686,
target: 4775 });
// adding node
var x_node = Math.cos(2 * 32 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 32 * Math.PI / N) * 10;
g.nodes.push({
id: 19948,
label: 'PROJECT: Biology and Genetics of Bacterial Cell Wall',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_figura15-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biology-and-genetics-of-bacterial-cell-wall__trashed/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435519948,
size: 0.5,
source: 4355,
target: 19948,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484355,
size: 0.5,
source: 19948,
target: 4355 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4357) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484357,
size: 0.5,
source: 19948,
target: 4357 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4358) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484358,
size: 0.5,
source: 19948,
target: 4358 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4361) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484361,
size: 0.5,
source: 19948,
target: 4361 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484360,
size: 0.5,
source: 19948,
target: 4360 });
//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: 4356,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199484356,
size: 0.5,
source: 19948,
target: 4356 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4362) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484362,
size: 0.5,
source: 19948,
target: 4362 });
//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: 4363,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199484363,
size: 0.5,
source: 19948,
target: 4363 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8265) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199488265,
size: 0.5,
source: 19948,
target: 8265 });
//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: 8267,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199488267,
size: 0.5,
source: 19948,
target: 8267 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8268) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199488268,
size: 0.5,
source: 19948,
target: 8268 });
//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: 52775,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1994852775,
size: 0.5,
source: 19948,
target: 52775 });
//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: 53899,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1994853899,
size: 0.5,
source: 19948,
target: 53899 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4359) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199484359,
size: 0.5,
source: 19948,
target: 4359 });
// adding node
var x_node = Math.cos(2 * 33 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 33 * Math.PI / N) * 10;
g.nodes.push({
id: 19681,
label: 'PROJECT: Symbiotic microbiota and the development and regulation of the immune system',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_microenvironment-and-immunity2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/symbiotic-microbiota-and-the-development-of-the-immune-system/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 435519681,
size: 0.5,
source: 4355,
target: 19681,
});
//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: 4220,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196814220,
size: 0.5,
source: 19681,
target: 4220 });
//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: 8699,
label: 'Sophie Dulauroy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_dulauroy-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sophie-dulauroy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196818699,
size: 0.5,
source: 19681,
target: 8699 });
//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: 4228,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196814228,
size: 0.5,
source: 19681,
target: 4228 });
//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: 6839,
label: 'François Déjardin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-francois-avril-2015-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francois-dejardin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196816839,
size: 0.5,
source: 19681,
target: 6839 });
//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: 8697,
label: 'Bernadette Polomack',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_bernadette-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bernadette-polomack/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196818697,
size: 0.5,
source: 19681,
target: 8697 });
//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: 4227,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 196814227,
size: 0.5,
source: 19681,
target: 4227 });
//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: 83022,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1968183022,
size: 0.5,
source: 19681,
target: 83022 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4225) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 196814225,
size: 0.5,
source: 19681,
target: 4225 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 196814355,
size: 0.5,
source: 19681,
target: 4355 });
// adding node
var x_node = Math.cos(2 * 34 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 34 * Math.PI / N) * 10;
g.nodes.push({
id: 6190,
label: 'TEAM: Biology and Genetics of Bacterial Cell Wall',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-and-genetics-of-bacterial-cell-wall-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-and-genetics-of-bacterial-cell-wall/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 43556190,
size: 0.5,
source: 4355,
target: 6190,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8268) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61908268,
size: 0.5,
source: 6190,
target: 8268 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8265) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61908265,
size: 0.5,
source: 6190,
target: 8265 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4210) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904210,
size: 0.5,
source: 6190,
target: 4210 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4358) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904358,
size: 0.5,
source: 6190,
target: 4358 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4357) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904357,
size: 0.5,
source: 6190,
target: 4357 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4359) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904359,
size: 0.5,
source: 6190,
target: 4359 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4360) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904360,
size: 0.5,
source: 6190,
target: 4360 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 81551) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 619081551,
size: 0.5,
source: 6190,
target: 81551 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 164458) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190164458,
size: 0.5,
source: 6190,
target: 164458 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 174637) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190174637,
size: 0.5,
source: 6190,
target: 174637 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 174635) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190174635,
size: 0.5,
source: 6190,
target: 174635 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 185144) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190185144,
size: 0.5,
source: 6190,
target: 185144 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 197202) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190197202,
size: 0.5,
source: 6190,
target: 197202 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 197204) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190197204,
size: 0.5,
source: 6190,
target: 197204 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 76103) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 619076103,
size: 0.5,
source: 6190,
target: 76103 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 213341) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190213341,
size: 0.5,
source: 6190,
target: 213341 });
//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: 211051,
label: 'Emma Melotti',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/emma-melotti/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6190211051,
size: 0.5,
source: 6190,
target: 211051 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 225986) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6190225986,
size: 0.5,
source: 6190,
target: 225986 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4355) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61904355,
size: 0.5,
source: 6190,
target: 4355 });
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) {
});