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: 4597,
label: 'Michaela Muller-Trutwin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_michaela-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=32
// 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: 230376,
label: 'NEWS: 3rd France – Japan symposium on HIV/AIDS & Infectious diseases basic research',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/3rd-france-japan-symposium-on-hiv-aids-infectious-diseases-basic-research/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597230376,
size: 0.5,
source: 4597,
target: 230376,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2303764597,
size: 0.5,
source: 230376,
target: 4597 });
//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: 202052,
label: 'Nathalie Alazard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/05/research_pasteur-nathalie-alazard-nathalie-alazard-institut-pasteur-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/nathalie-alazard/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 230376202052,
size: 0.5,
source: 230376,
target: 202052 });
//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: 4764,
label: 'Anavaj Sakuntabhai',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_l1000961-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/anavaj-sakuntabhai/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2303764764,
size: 0.5,
source: 230376,
target: 4764 });
//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: 40239,
label: 'Cécile Peltekian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_img_9689-e1445939889993-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/cecile-peltekian/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 23037640239,
size: 0.5,
source: 230376,
target: 40239 });
//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: 4300,
label: 'Magali Lago',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_magali-lago-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/magali-lago/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2303764300,
size: 0.5,
source: 230376,
target: 4300 });
// 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: 230362,
label: 'EVENT: 3rd France – Japan symposium on HIV/AIDS & Infectious diseases basic research',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/3rd-france-japan-symposium-on-hiv-aids-infectious-diseases-basic-research__trashed/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597230362,
size: 0.5,
source: 4597,
target: 230362,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2303624597,
size: 0.5,
source: 230362,
target: 4597 });
//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: 4600,
label: 'Asier Sáez-Cirión',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_dsc2316-e1441290951360-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/asier-saez-cirion/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2303624600,
size: 0.5,
source: 230362,
target: 4600 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4764) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2303624764,
size: 0.5,
source: 230362,
target: 4764 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4300) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2303624300,
size: 0.5,
source: 230362,
target: 4300 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 230362202052,
size: 0.5,
source: 230362,
target: 202052 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 40239) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 23036240239,
size: 0.5,
source: 230362,
target: 40239 });
// 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: 220930,
label: 'EVENT: Work in progress (WIP) – ANRS MIE AC41 “Host-HIV interactions, basic and translational research”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/work-in-progress-wip-anrs-mie-ac41-host-hiv-interactions-basic-and-translational-research/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597220930,
size: 0.5,
source: 4597,
target: 220930,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2209304597,
size: 0.5,
source: 220930,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 220930202052,
size: 0.5,
source: 220930,
target: 202052 });
// 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: 220923,
label: 'NEWS: Work in progress (WIP) – AC41 “Host-HIV interactions, basic and translational research” – May 2nd – Institut Pasteur',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/work-in-progress-wip/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597220923,
size: 0.5,
source: 4597,
target: 220923,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2209234597,
size: 0.5,
source: 220923,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 220923202052,
size: 0.5,
source: 220923,
target: 202052 });
// 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: 214826,
label: 'NEWS: HIV Host-Virus interactions international symposium by the AC41 (ANRS MIE)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/hiv-host-virus-interactions-international-symposium-by-the-ac41-anrs-mie/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597214826,
size: 0.5,
source: 4597,
target: 214826,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2148264597,
size: 0.5,
source: 214826,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214826202052,
size: 0.5,
source: 214826,
target: 202052 });
// 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: 206592,
label: 'NEWS: ANRS MIE AC41 International symposium on Targeting the HIV reservoir – 21st november at Institut Pasteur',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/anrs-mie-ac41-international-symposium-on-targeting-the-hiv-reservoir-21st-november-at-institut-pasteur/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597206592,
size: 0.5,
source: 4597,
target: 206592,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2065924597,
size: 0.5,
source: 206592,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206592202052,
size: 0.5,
source: 206592,
target: 202052 });
// 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: 201873,
label: 'EVENT: 40 years of HIV science',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/40-years-of-hiv-science/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597201873,
size: 0.5,
source: 4597,
target: 201873,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4107,
label: 'Christophe D’Enfert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/denfert_0-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/christophe-denfert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018734107,
size: 0.5,
source: 201873,
target: 4107 });
//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/fr/member/francesca-di-nunzio/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018734052,
size: 0.5,
source: 201873,
target: 4052 });
//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/fr/member/james-di-santo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018734180,
size: 0.5,
source: 201873,
target: 4180 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2018734597,
size: 0.5,
source: 201873,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4600) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2018734600,
size: 0.5,
source: 201873,
target: 4600 });
//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: 4821,
label: 'Olivier Schwartz',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo-o.schwartz-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/olivier-schwartz/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2018734821,
size: 0.5,
source: 201873,
target: 4821 });
// 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: 186203,
label: 'NEWS: ANRS-MIE AC41 International Symposium on HIV reservoirs on Nov 14 and 15 at Institut Pasteur, Paris',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/anrs-mie-ac41-international-symposium-on-hiv-reservoirs-on-nov-14-and-15-at-institut-pasteur-paris/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597186203,
size: 0.5,
source: 4597,
target: 186203,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1862034597,
size: 0.5,
source: 186203,
target: 4597 });
// 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: 177222,
label: 'NEWS: Seminar by Bob Seder on mRNA-1273 and mRNA-Omicron boost immune reponses',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/seminar-by-bob-seder/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597177222,
size: 0.5,
source: 4597,
target: 177222,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1772224597,
size: 0.5,
source: 177222,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4821) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1772224821,
size: 0.5,
source: 177222,
target: 4821 });
// 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: 175877,
label: 'COURSE: HIV Science MOOC',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/02/research_pasteur-hiv-science-mooc-pbm011-copie-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/course/hiv-science-mooc/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597175877,
size: 0.5,
source: 4597,
target: 175877,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1758774597,
size: 0.5,
source: 175877,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4600) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1758774600,
size: 0.5,
source: 175877,
target: 4600 });
//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: 141224,
label: 'Aurelio Orta-Resendiz',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/04/research_pasteur-aurelio-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/aurelio-orta-resendiz/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 175877141224,
size: 0.5,
source: 175877,
target: 141224 });
// 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: 171568,
label: 'NEWS: Post-doc position',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/post-doc-position/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597171568,
size: 0.5,
source: 4597,
target: 171568,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1715684597,
size: 0.5,
source: 171568,
target: 4597 });
//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: 4596,
label: 'Nicolas Huot',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo13-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/nicolas-huot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1715684596,
size: 0.5,
source: 171568,
target: 4596 });
// 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: 160726,
label: 'NEWS: Immunothérapie permettant à des cellules du système immunitaire inné de contribuer au contrôle du VIH après un arrêt du traitement antiviral',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/immunotherapie-permettant-a-des-cellules-du-systeme-immunitaire-inne-de-contribuer-au-controle-du-vih-apres-un-arret-du-traitement-antiviral/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597160726,
size: 0.5,
source: 4597,
target: 160726,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4596) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1607264596,
size: 0.5,
source: 160726,
target: 4596 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1607264597,
size: 0.5,
source: 160726,
target: 4597 });
//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: 4603,
label: 'Béatrice Jacquelin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_web3-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/beatrice-jacquelin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1607264603,
size: 0.5,
source: 160726,
target: 4603 });
// 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: 132140,
label: 'EVENT: Recherche sur le VIH et les Hépatites: quels nouveaux enjeux?',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/recherche-sur-le-vih-et-les-hepatites-quels-nouveaux-enjeux/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597132140,
size: 0.5,
source: 4597,
target: 132140,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1321404597,
size: 0.5,
source: 132140,
target: 4597 });
// 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: 131184,
label: 'EVENT: France – Japan Symposium on HIV and hepatitis basic research',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/france-japan-symposium-on-hiv-and-hepatitis-basic-research/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597131184,
size: 0.5,
source: 4597,
target: 131184,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1311844597,
size: 0.5,
source: 131184,
target: 4597 });
// 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: 124448,
label: 'NEWS: ANRS AC41 Symposium- HIV Pathogenesis: Lessons from HIV-2',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/03/research_pasteur-diapositive1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/anrs-ac41-symposium-hiv-pathogenesis-lessons-from-hiv-2/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597124448,
size: 0.5,
source: 4597,
target: 124448,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1244484597,
size: 0.5,
source: 124448,
target: 4597 });
// 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: 113876,
label: 'NEWS: HIV DART and Emerging viruses meeting (deadline for abstracts Oct 5)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/hiv-dart-and-emerging-viruses-meeting/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597113876,
size: 0.5,
source: 4597,
target: 113876,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1138764597,
size: 0.5,
source: 113876,
target: 4597 });
// 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: 112599,
label: 'NEWS: MOOC on HIV Science (registration free)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/mooc-on-hiv-science/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597112599,
size: 0.5,
source: 4597,
target: 112599,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1125994597,
size: 0.5,
source: 112599,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4600) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1125994600,
size: 0.5,
source: 112599,
target: 4600 });
// 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: 110235,
label: 'NEWS: Satellite Symposium at the International HIV Conference in Amsterdam: ” How Far are We from HIV Remission?',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_vih-traitement-universel-precoce-de-la-theorie-a-la-pratique-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/satellite-symposium-at-the-international-hiv-conference-in-amsterdam-how-far-are-we-from-hiv-remission/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597110235,
size: 0.5,
source: 4597,
target: 110235,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1102354597,
size: 0.5,
source: 110235,
target: 4597 });
// 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: 106960,
label: 'NEWS: IDMI-DIM1Health Symposium',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/idmi-dim1health-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4597106960,
size: 0.5,
source: 4597,
target: 106960,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1069604597,
size: 0.5,
source: 106960,
target: 4597 });
// 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: 98969,
label: 'PROJECT: NK cells and viral reservoirs',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/project/nk-cells-and-viral-reservoirs/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459798969,
size: 0.5,
source: 4597,
target: 98969,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4596) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 989694596,
size: 0.5,
source: 98969,
target: 4596 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4603) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 989694603,
size: 0.5,
source: 98969,
target: 4603 });
//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: 63772,
label: 'Philippe Rascle',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/?post_type=member&p=63772',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 9896963772,
size: 0.5,
source: 98969,
target: 63772 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 989694597,
size: 0.5,
source: 98969,
target: 4597 });
// 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: 98238,
label: 'NEWS: Keystone symposium on HIV Pathogenesis, Inflammation and Persistence',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/keystone-symposium-on-hiv-april-2018/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459798238,
size: 0.5,
source: 4597,
target: 98238,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 982384597,
size: 0.5,
source: 98238,
target: 4597 });
// 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: 97246,
label: 'NEWS: Natural killer cells migrate into and control simian immunodeficiency virus replication in lymph node follicles in African green monkeys',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/natural-killer-cells-migrate-into-and-control-simian-immunodeficiency-virus-replication-in-lymph-node-follicles-in-african-green-monkeys/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459797246,
size: 0.5,
source: 4597,
target: 97246,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 972464597,
size: 0.5,
source: 97246,
target: 4597 });
// 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: 81997,
label: 'NEWS: IAS 2017',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_diapositive1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/ias-2017/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459781997,
size: 0.5,
source: 4597,
target: 81997,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 819974597,
size: 0.5,
source: 81997,
target: 4597 });
// 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: 68649,
label: 'NEWS: IDMIT Symposium',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_logo-idmit-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/idmit-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459768649,
size: 0.5,
source: 4597,
target: 68649,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 686494597,
size: 0.5,
source: 68649,
target: 4597 });
// 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: 68644,
label: 'NEWS: HIV Cure Symposium',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_diapositive1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/hiv-cure-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459768644,
size: 0.5,
source: 4597,
target: 68644,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 686444597,
size: 0.5,
source: 68644,
target: 4597 });
// 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: 66186,
label: 'NEWS: Let’s #cutAIDSshort',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/03/research.pasteur.fr_diapositive1-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/lets-cutaidsshort/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459766186,
size: 0.5,
source: 4597,
target: 66186,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 661864597,
size: 0.5,
source: 66186,
target: 4597 });
// 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: 64262,
label: 'PROJECT: Group for AIDS Research',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_grs-logo-3-square-1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/project/groupe-reflexion-sida/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459764262,
size: 0.5,
source: 4597,
target: 64262,
});
//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: 4818,
label: 'Nicoletta Casartelli',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/06/research_pasteur-682135-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/nicoletta-casartelli/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642624818,
size: 0.5,
source: 64262,
target: 4818 });
//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/fr/member/lisa-chakrabarti/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642623931,
size: 0.5,
source: 64262,
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: 4575,
label: 'Hugo Mouquet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-mouquet_id-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/hugo-mouquet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642624575,
size: 0.5,
source: 64262,
target: 4575 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4600) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 642624600,
size: 0.5,
source: 64262,
target: 4600 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 642624597,
size: 0.5,
source: 64262,
target: 4597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4821) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 642624821,
size: 0.5,
source: 64262,
target: 4821 });
//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: 4881,
label: 'Frédéric Tangy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig11-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/frederic-tangy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642624881,
size: 0.5,
source: 64262,
target: 4881 });
//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: 4963,
label: 'Simon Wain-Hobson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig2-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/simon-wain-hobson/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642624963,
size: 0.5,
source: 64262,
target: 4963 });
//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: 4051,
label: 'Pierre Charneau',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig10-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/pierre-charneau/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642624051,
size: 0.5,
source: 64262,
target: 4051 });
//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: 3928,
label: 'Fernando Arenzana-Seisdedos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig60-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/fernando-arenzana-seisdedos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 642623928,
size: 0.5,
source: 64262,
target: 3928 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 642624052,
size: 0.5,
source: 64262,
target: 4052 });
// 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: 38700,
label: 'NEWS: Intracellular immunity and the sensing of pathogens',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/intracellular-immunity-and-the-sensing-of-pathogens/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459738700,
size: 0.5,
source: 4597,
target: 38700,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 387004597,
size: 0.5,
source: 38700,
target: 4597 });
// 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: 38684,
label: 'PROJECT: VRI Labex',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_diapositive11-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/project/vri-labex/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459738684,
size: 0.5,
source: 4597,
target: 38684,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4596) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 386844596,
size: 0.5,
source: 38684,
target: 4596 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4603) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 386844603,
size: 0.5,
source: 38684,
target: 4603 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63772) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 3868463772,
size: 0.5,
source: 38684,
target: 63772 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 386844597,
size: 0.5,
source: 38684,
target: 4597 });
// 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: 38669,
label: 'PROJECT: European Network on Myeloid Regulatory Cells',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/project/european-network-on-myeloid-regulatory-cells/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459738669,
size: 0.5,
source: 4597,
target: 38669,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4603) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 386694603,
size: 0.5,
source: 38669,
target: 4603 });
//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: 56941,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3866956941,
size: 0.5,
source: 38669,
target: 56941 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 386694597,
size: 0.5,
source: 38669,
target: 4597 });
// 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: 37515,
label: 'PROJECT: A model of control of chronic inflammation',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/project/a-model-of-control-of-chronic-inflammation/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 459737515,
size: 0.5,
source: 4597,
target: 37515,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4603) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 375154603,
size: 0.5,
source: 37515,
target: 4603 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 56941) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 3751556941,
size: 0.5,
source: 37515,
target: 56941 });
//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: 80619,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3751580619,
size: 0.5,
source: 37515,
target: 80619 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 375154597,
size: 0.5,
source: 37515,
target: 4597 });
// 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: 6226,
label: 'TEAM: HIV, inflammation et persistance',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_duo-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/hiv-inflammation-and-persistence/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 45976226,
size: 0.5,
source: 4597,
target: 6226,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4603) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62264603,
size: 0.5,
source: 6226,
target: 4603 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4596) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62264596,
size: 0.5,
source: 6226,
target: 4596 });
//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: 8382,
label: 'Marie Lazzerini',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/06/research_pasteur-njg2njy4-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/marie-lazzerini/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62268382,
size: 0.5,
source: 6226,
target: 8382 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 141224) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6226141224,
size: 0.5,
source: 6226,
target: 141224 });
//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: 176907,
label: 'Caroline Petitdemange',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/caroline-petitdemange/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6226176907,
size: 0.5,
source: 6226,
target: 176907 });
//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: 176914,
label: 'Emma Beaumont',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/02/research_pasteur-emma-beaumont-photoeb-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/emma-beaumont/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6226176914,
size: 0.5,
source: 6226,
target: 176914 });
//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: 179500,
label: 'Marie Philippe',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/04/research_pasteur-marie-philippe-photo-marie-identite-1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/marie-philippe/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6226179500,
size: 0.5,
source: 6226,
target: 179500 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 202052) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6226202052,
size: 0.5,
source: 6226,
target: 202052 });
//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: 156767,
label: 'Faustine Amara',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/04/research_pasteur-faustine-amara-received-839290707296556nb-e1691400999561-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/faustine-amara/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6226156767,
size: 0.5,
source: 6226,
target: 156767 });
//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: 231685,
label: 'Louis Valognes',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-enlouis-valognesfrlouis-valognes-bbfpgxkmwsc7pv3ymqe5udyhxvo-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/louis-valognes/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6226231685,
size: 0.5,
source: 6226,
target: 231685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62264597,
size: 0.5,
source: 6226,
target: 4597 });
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) {
});